Type.TypeInitializer Vlastnost

Definice

Získá inicializátor pro typ.

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

Hodnota vlastnosti

ConstructorInfo

Objekt, který obsahuje název konstruktoru třídy pro Type .

Implementuje

Atributy

Poznámky

Inicializátory tříd jsou také k dispozici prostřednictvím metody nebo prostřednictvím přetížení metod , , a , které FindMembers GetMember GetMembers GetConstructor GetConstructors BindingFlags přechytá jako parametr.

Pokud aktuální představuje parametr typu v definici obecného typu nebo Type obecné metody, vrátí tato vlastnost hodnotu null .

Platí pro

Viz také