_Type.IsPrimitive _Type.IsPrimitive _Type.IsPrimitive _Type.IsPrimitive Property

定義

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

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

屬性值

如果 true 是其中一個基本類型,則為 Type,否則為 falsetrue if the Type is one of the primitive types; 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.IsPrimitive屬性會取得值,指出是否Type是其中一個基本類型。The Type.IsPrimitive property gets a value indicating whether the Type is one of the primitive types.

適用於