Type.TypeInitializer 屬性

定義

取得該型別的初始化器。

public:
 property System::Reflection::ConstructorInfo ^ TypeInitializer { System::Reflection::ConstructorInfo ^ 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

屬性值

一個包含類別建構子 Type名稱的物件。

實作

屬性

備註

類別初始化器也可透過方法使用FindMembers,或透過 、 GetMembersGetConstructorGetConstructors參數為BindingFlags參數的方法的超載GetMember使用。

若電流 Type 代表泛型或泛型方法定義中的型別參數,則此性質回傳 null

適用於

另請參閱