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 { [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors)] get; }
public System.Reflection.ConstructorInfo TypeInitializer { get; }
public System.Reflection.ConstructorInfo? TypeInitializer { get; }
[System.Runtime.InteropServices.ComVisible(true)]
public System.Reflection.ConstructorInfo TypeInitializer { get; }
[<get: System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors)>]
member this.TypeInitializer : System.Reflection.ConstructorInfo
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

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 FindMembers metody, nebo prostřednictvím přetížení GetMember, GetMembers, GetConstructora GetConstructors metody, které berou BindingFlags jako parametr.

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

Platí pro

Viz také