_Type.IsClass _Type.IsClass _Type.IsClass _Type.IsClass Property

定義

為 COM 物件提供與版本無關的 IsClass 屬性之存取權。Provides COM objects with version-independent access to the IsClass property.

public:
 property bool IsClass { bool get(); };
public bool IsClass { get; }
member this.IsClass : bool
Public ReadOnly Property IsClass As Boolean

屬性值

如果 Type 是類別,則為 true,否則為 falsetrue if the Type is a class; otherwise, false.

備註

這個屬性從 unmanaged 程式碼,是用於存取 managed 類別,並不會呼叫從 managed 程式碼。This property is for access to managed classes from unmanaged code, and should not be called from managed code.

Type.IsClass屬性會取得值,指出是否Type類別; 也就是說,不是實值型別或介面。The Type.IsClass property gets a value indicating whether the Type is a class; that is, not a value type or interface.

適用於