TypeDelegator.GetConstructors(BindingFlags) Metoda

Definicja

Zwraca tablicę ConstructorInfo obiektów reprezentujących konstruktory zdefiniowane dla typu opakowanego przez bieżący TypeDelegatorelement .

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

Maska bitowa, która wpływa na sposób przeprowadzania wyszukiwania. Wartość jest kombinacją zera lub więcej flag bitowych z BindingFlags.

Zwraca

Tablica typu ConstructorInfo zawierająca określone konstruktory zdefiniowane dla tej klasy. Jeśli nie zdefiniowano żadnych konstruktorów, zwracana jest pusta tablica. W zależności od wartości określonego parametru zwracane będą tylko konstruktory publiczne lub konstruktory publiczne i niepublizowane.

Atrybuty

Uwagi

Inicjatory klas są dostępne tylko za pośrednictwem GetMemberpoleceń , GetMembers, FindMembersi GetConstructors.

Dotyczy