Type.TypeInitializer Właściwość

Definicja

Pobiera inicjator dla typu.

public:
 property System::Reflection::ConstructorInfo ^ TypeInitializer { System::Reflection::ConstructorInfo ^ get(); };
public System.Reflection.ConstructorInfo? TypeInitializer { get; }
public System.Reflection.ConstructorInfo TypeInitializer { get; }
[System.Runtime.InteropServices.ComVisible(true)]
public System.Reflection.ConstructorInfo TypeInitializer { get; }
member this.TypeInitializer : System.Reflection.ConstructorInfo
[<System.Runtime.InteropServices.ComVisible(true)>]
member this.TypeInitializer : System.Reflection.ConstructorInfo
Public ReadOnly Property TypeInitializer As ConstructorInfo

Wartość właściwości

Obiekt, który zawiera nazwę konstruktora klasy dla klasy Type.

Implementuje

Atrybuty

Uwagi

Inicjatory klas są również dostępne za pośrednictwem FindMembers metody lub przeciążeń GetMembermetod , GetMembers, GetConstructori GetConstructors , które przyjmują BindingFlags jako parametr.

Jeśli bieżący Type reprezentuje parametr typu w definicji typu ogólnego lub metody ogólnej, ta właściwość zwraca nullwartość .

Dotyczy

Zobacz też