信息
您所需的主题如下所示。但此主题未包含在此库中。

IPropertyValue Interface

表示属性存储中的值。您无法实现此接口,请参见备注。

语法


public interface class IPropertyValue

特性

[Version(0x06020000)]

成员

IPropertyValue接口 继承自 IUnknown 接口. IPropertyValue 也具有这些类型的成员:

方法

The IPropertyValue 接口 具有这些方法。 它还继承方法于Object 类.

方法说明
GetBoolean Returns the Boolean value stored as a property value.
GetBooleanArray Returns the array of Boolean values stored as a property value.
GetChar16 Returns the Unicode character stored as a property value.
GetChar16Array Returns the array of Unicode characters stored as a property value.
GetDateTime Returns the date and time value stored as a property value.
GetDateTimeArray Returns the array of date and time values stored as a property value.
GetDouble Returns the floating-point value stored as a property value.
GetDoubleArray Returns the array of floating-point values stored as a property value.
GetGuid Returns the GUID value stored as a property value.
GetGuidArray Returns the array of GUID values stored as a property value.
GetInspectableArray Returns the array of inspectable objects stored as a property value.
GetInt16 Returns the integer value stored as a property value.
GetInt16Array Returns the array of integer values stored as a property value.
GetInt32 Returns the integer value stored as a property value.
GetInt32Array Returns the array of integer values stored as a property value.
GetInt64 Returns the integer value stored as a property value.
GetInt64Array Returns the array of integer values stored as a property value.
GetPoint Returns the point structure stored as a property value.
GetPointArray Returns the array of point structures stored as a property value.
GetRect Returns the rectangle structure stored as a property value.
GetRectArray Returns the array of rectangle structures stored as a property value.
GetSingle Returns the floating-point value stored as a property value.
GetSingleArray Returns the array of floating-point values stored as a property value.
GetSize Returns the size structure stored as a property value.
GetSizeArray Returns the array of size structures stored as a property value.
GetString Returns the string value stored as a property value.
GetStringArray Returns the array of string values stored as a property value.
GetTimeSpan Returns the time interval value stored as a property value.
GetTimeSpanArray Returns the array of time interval values stored as a property value.
GetUInt16 Returns the unsigned integer value stored as a property value.
GetUInt16Array Returns the array of unsigned integer values stored as a property value.
GetUInt32 Returns the unsigned integer value stored as a property value.
GetUInt32Array Returns the array of unsigned integer values stored as a property value.
GetUInt64 Returns the unsigned integer value stored as a property value.
GetUInt64Array Returns the array of unsigned integer values stored as a property value.
GetUInt8 Returns the byte value stored as a property value.
GetUInt8Array Returns the array of byte values stored as a property value.

 

属性

IPropertyValue接口 具有这些属性。

属性访问类型说明

IsNumericScalar

只读Gets a value that indicates whether the property value is a scalar value.

Type

只读Returns the type stored in the property value.

 

备注

IPropertyValue 接口是直到运行时才能知道其类型的值的存储。

要获取存储在 IPropertyValue 对象中的值,如果先前并不知晓存储属性的类型,应首先确定 Type 属性中的存储类型然后调用此类型对应的 IPropertyValue 方法。

如果提前知道类型,则您可以使用 IPropertyValue 接口目录的类型访问方法并检查返回值以验证返回的类型是否为预期类型。 如果返回的类型与 Type 属性的值不匹配,则方法失败,并且返回 TYPE_E_TYPEMISMATCH 错误。

在签名中无法实现 IPropertyValue 接口或包含它。IPropertyValue 主要是 Windows 运行时如何实现装箱和可以为 null 的值的内部实现的详细信息。

要求

最低支持客户端

Windows 8

最低支持服务器

Windows Server 2012

最低支持电话

Windows Phone 8

命名空间

Windows::Foundation

元数据

Windows.winmd

 

 

显示: