TypeBuilder.GetConstructors(BindingFlags) Metodo

Definizione

Restituisce una matrice di ConstructorInfo oggetti che rappresentano i costruttori pubblici e non pubblici definiti per questa classe, come specificato.

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()

Parametri

bindingAttr
BindingFlags

Deve essere un flag di bit da BindingFlags come in InvokeMethod, NonPublice così via.

Valori restituiti

Restituisce una matrice di ConstructorInfo oggetti che rappresentano i costruttori specificati definiti per questa classe. Se non vengono definiti costruttori, viene restituita una matrice vuota.

Attributi

Eccezioni

Questo metodo non viene implementato per i tipi incompleti.

Commenti

Recuperare il tipo utilizzando Type.GetType o Assembly.GetType e usare la reflection sul tipo recuperato.

Si applica a