TypeDelegator.GetConstructors(BindingFlags) Metoda

Definice

Vrátí pole ConstructorInfo objektů představujících konstruktory definované pro typ zabalený aktuální TypeDelegator.

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

Bitová maska, která ovlivňuje způsob, jakým se vyhledávání provádí. Hodnota je kombinací nula nebo více bitových příznaků z BindingFlags.

Návraty

Pole typu ConstructorInfo obsahující zadané konstruktory definované pro tuto třídu. Pokud nejsou definovány žádné konstruktory, vrátí se prázdné pole. V závislosti na hodnotě zadaného parametru budou vráceny pouze veřejné konstruktory nebo veřejné i neveřejné konstruktory.

Atributy

Poznámky

Inicializátory tříd jsou k dispozici pouze prostřednictvím GetMember, GetMembersFindMembers, a GetConstructors.

Platí pro