TypeBuilder.GetConstructors(BindingFlags) Método

Definição

Retorna uma matriz de ConstructorInfo objetos que representam os construtores públicos e não públicos definidos para essa 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

Isso deve ser um sinalizador de bits como BindingFlags em InvokeMethod, NonPublice assim por diante.

Retornos

Retorna uma matriz de ConstructorInfo objetos que representa os construtores especificados definidos para essa classe. Se nenhum construtor for definido, uma matriz vazia será retornada.

Atributos

Exceções

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

Comentários

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

Aplica-se a