TypeBuilder.GetConstructors(BindingFlags) Metoda

Definice

Vrátí pole ConstructorInfo objektů představující veřejné a neveřejné konstruktory definované pro tuto třídu, jak je uvedeno.

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

Parametry

bindingAttr
BindingFlags

Musí to být bitový příznak z BindingFlagsInvokeMethodNonPublic, a tak dále.

Návraty

Vrátí pole ConstructorInfo objektů představujících zadané konstruktory definované pro tuto třídu. Pokud nejsou definovány žádné konstruktory, vrátí se prázdné pole.

Atributy

Výjimky

Tato metoda není implementována pro neúplné typy.

Poznámky

Načtěte typ pomocí Type.GetType nebo Assembly.GetType a použijte reflexi na načtený typ.

Platí pro