_Type.IsValueType _Type.IsValueType _Type.IsValueType _Type.IsValueType Property

定义

为 COM 对象提供对 IsValueType 属性的与版本无关的访问。Provides COM objects with version-independent access to the IsValueType property.

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

属性值

如果 true 是值类型,则为 Type;否则为 falsetrue if the Type is a value type; otherwise, false.

注解

此属性用于从非托管代码访问托管类,不应从托管代码调用。This property is for access to managed classes from unmanaged code, and should not be called from managed code.

属性获取一个值,该值指示Type是否为值类型。 Type.IsValueTypeThe Type.IsValueType property gets a value indicating whether the Type is a value type.

适用于