_Type.Attributes 屬性

定義

為 COM 物件提供與版本無關的 Attributes 屬性之存取權。

public:
 property System::Reflection::TypeAttributes Attributes { System::Reflection::TypeAttributes get(); };
public System.Reflection.TypeAttributes Attributes { get; }
member this.Attributes : System.Reflection.TypeAttributes
Public ReadOnly Property Attributes As TypeAttributes

屬性值

代表 TypeAttributes 屬性集的 Type 物件;若 Type 代表的是泛型型別參數,則這個值就是未指定的。

備註

此屬性適用于從 Unmanaged 程式碼存取 Managed 類別,而且不應該從 Managed 程式碼呼叫。

屬性 Type.Attributes 會取得與 Type 相關聯的屬性。

適用於