TypeBuilder.GetConstructors(BindingFlags) Metodo

Definizione

Restituisce una matrice di oggetti ConstructorInfo 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 di BindingFlags, come in InvokeMethod, NonPublic e così via.

Restituisce

Restituisce una matrice di oggetti ConstructorInfo che rappresentano i costruttori specificati definiti per questa classe. Se non è stato definito alcun costruttore, verrà restituita una matrice vuota.

Attributi

Eccezioni

Questo metodo non viene implementato per i tipi incompleti.

Commenti

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

Si applica a