EnumBuilder.GetConstructors(BindingFlags) Metoda

Definice

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

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 BindingFlags : InvokeMethod, NonPublica 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í v současné době podporována u typů, které nejsou dokončené.

Poznámky

Jako alternativní řešení můžete konstruktor dokončeného typu načíst pomocí Type.GetType příkazu nebo Assembly.GetType a použít reflexi na načteném typu.

Platí pro