Type.TypeInitializer 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得該型別的初始化器。
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,或透過 、 GetMembers、 GetConstructor及GetConstructors參數為BindingFlags參數的方法的超載GetMember使用。
若電流 Type 代表泛型或泛型方法定義中的型別參數,則此性質回傳 null。