Type.TypeInitializer Tulajdonság

Definíció

Lekéri a típushoz tartozó inicializálót.

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

Tulajdonság értéke

Az osztálykonstruktor nevét tartalmazó objektum.Type

Megvalósítás

Attribútumok

Megjegyzések

Az osztály inicializálói a metóduson vagy a FindMembersGetMember, , GetMembersés GetConstructorGetConstructors a paraméterként figyelembe vehető BindingFlags metódusok túlterhelésén keresztül is elérhetők.

Ha az aktuális Type érték egy típusparamétert jelöl egy általános típus vagy általános metódus definíciójában, ez a tulajdonság ad vissza null.

A következőre érvényes:

Lásd még