TypeBuilder.GetConstructors(BindingFlags) Método

Definição

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

Esse deve ser um sinalizador de bit de BindingFlags, tal como em InvokeMethod, NonPublic e assim por diante.

Retornos

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

Atributos

Exceções

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

Comentários

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

Aplica-se a