TypeBuilder.GetConstructors(BindingFlags) Método

Definição

Devolve um array de ConstructorInfo objetos que representam os construtores públicos e não públicos definidos para esta classe, conforme especificado.

public:
 override cli::array <System::Reflection::ConstructorInfo ^> ^ GetConstructors(System::Reflection::BindingFlags bindingAttr);
public override System.Reflection.ConstructorInfo[] GetConstructors(System.Reflection.BindingFlags bindingAttr);
[System.Runtime.InteropServices.ComVisible(true)]
public override System.Reflection.ConstructorInfo[] GetConstructors(System.Reflection.BindingFlags bindingAttr);
override this.GetConstructors : System.Reflection.BindingFlags -> System.Reflection.ConstructorInfo[]
[<System.Runtime.InteropServices.ComVisible(true)>]
override this.GetConstructors : System.Reflection.BindingFlags -> System.Reflection.ConstructorInfo[]
Public Overrides Function GetConstructors (bindingAttr As BindingFlags) As ConstructorInfo()

Parâmetros

bindingAttr
BindingFlags

Isto deve ser um bit flag de BindingFlags como em InvokeMethod, NonPublic, e assim sucessivamente.

Devoluções

Devolve um array de ConstructorInfo objetos que representam os construtores especificados definidos para esta classe. Se não forem definidos construtores, um array vazio é devolvido.

Atributos

Exceções

Este método não é implementado para tipos incompletos.

Observações

Recupere o tipo usando Type.GetType ou Assembly.GetType e use reflexão sobre o tipo recuperado.

Aplica-se a