_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.

注解

此属性是用于访问托管类到从非托管代码,不应从托管代码调用。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.

适用于