标识存储在实现 IPropertyValue 接口的 Windows 运行时 对象中的类型。
语法
typedef enum PropertyType {
PropertyType_Empty = 0,
PropertyType_UInt8 = 1,
PropertyType_Int16 = 2,
PropertyType_UInt16 = 3,
PropertyType_Int32 = 4,
PropertyType_UInt32 = 5,
PropertyType_Int64 = 6,
PropertyType_UInt64 = 7,
PropertyType_Single = 8,
PropertyType_Double = 9,
PropertyType_Char16 = 10,
PropertyType_Boolean = 11,
PropertyType_String = 12,
PropertyType_Inspectable = 13,
PropertyType_DateTime = 14,
PropertyType_TimeSpan = 15,
PropertyType_Guid = 16,
PropertyType_Point = 17,
PropertyType_Size = 18,
PropertyType_Rect = 19,
PropertyType_OtherType = 20,
PropertyType_UInt8Array = 1025,
PropertyType_Int16Array = 1026,
PropertyType_UInt16Array = 1027,
PropertyType_Int32Array = 1028,
PropertyType_UInt32Array = 1029,
PropertyType_Int64Array = 1030,
PropertyType_UInt64Array = 1031,
PropertyType_SingleArray = 1032,
PropertyType_DoubleArray = 1033,
PropertyType_Char16Array = 1034,
PropertyType_BooleanArray = 1035,
PropertyType_StringArray = 1036,
PropertyType_InspectableArray = 1037,
PropertyType_DateTimeArray = 1038,
PropertyType_TimeSpanArray = 1039,
PropertyType_GuidArray = 1040,
PropertyType_PointArray = 1041,
PropertyType_SizeArray = 1042,
PropertyType_RectArray = 1043,
PropertyType_OtherTypeArray = 1044
} ;
常量
PropertyType_Empty值: 0对象不包含值。
PropertyType_UInt8值:1对象包含一个无符号 8 位整数。
PropertyType_Int16值: 2对象包含有符号 16 位整数。
PropertyType_UInt16值: 3对象包含一个无符号 16 位整数。
PropertyType_Int32值: 4对象包含有符号 32 位整数。
PropertyType_UInt32值: 5对象包含一个无符号 32 位整数。
PropertyType_Int64值: 6对象包含有符号 64 位整数。
PropertyType_UInt64值: 7对象包含无符号 64 位整数。
PropertyType_Single值: 8对象包含 32 位浮点值。 此值符合 IEEE 754 标准。
PropertyType_Double值: 9对象包含 64 位浮点值。 此值符合 IEEE 754 标准。
PropertyType_Char16值: 10对象包含 16 位字符。 此字符表示 UTF-16 (Unicode) 代码单元。
PropertyType_Boolean值: 11对象包含 8 位布尔值。
PropertyType_String值: 12对象包含 HSTRING。
PropertyType_Inspectable值: 13对象包含实现 IInspectable 接口的对象。
PropertyType_DateTime值: 14对象包含 DateTime。
PropertyType_TimeSpan值: 15对象包含 TimeSpan。
PropertyType_Guid值: 16对象包含 GUID。
PropertyType_Point值: 17对象包含 一个 Point。
PropertyType_Size值: 18对象包含 Size。
PropertyType_Rect值: 19对象包含 一个 Rect。
PropertyType_OtherType值: 20对象包含未指定的类型。
PropertyType_UInt8Array值: 1025对象包含一个由 8 位无符号整数构成的数组。
PropertyType_Int16Array值: 1026对象包含一个由 16 位有符号整数构成的数组。
PropertyType_UInt16Array值: 1027对象包含一个无符号 16 位整数数组。
PropertyType_Int32Array值: 1028对象包含带符号 32 位整数的数组。
PropertyType_UInt32Array值: 1029对象包含一个由 32 位无符号整数构成的数组。
PropertyType_Int64Array值: 1030对象包含带符号 64 位整数的数组。
PropertyType_UInt64Array值: 1031对象包含一个无符号 64 位整数数组。
PropertyType_SingleArray值: 1032对象包含 32 位浮点值的数组。
PropertyType_DoubleArray值: 1033对象包含 64 位浮点值的数组。
PropertyType_Char16Array值: 1034对象包含 16 位字符的数组。
PropertyType_BooleanArray值: 1035对象包含一个 8 位布尔值数组。
PropertyType_StringArray值: 1036对象包含 HSTRING 数组。
PropertyType_InspectableArray值: 1037对象包含实现 IInspectable 接口的 对象的数组。
PropertyType_DateTimeArray值: 1038对象包含 DateTime 数组。
PropertyType_TimeSpanArray值: 1039对象包含 TimeSpan 数组。
PropertyType_GuidArray值: 1040对象包含 GUID 数组。
PropertyType_PointArray值: 1041对象包含 Point 数组。
PropertyType_SizeArray值: 1042对象包含 Size 数组。
PropertyType_RectArray值: 1043对象包含 一个 Rect 数组。
PropertyType_OtherTypeArray值: 1044对象包含未指定类型的数组。
要求
要求
值
最低受支持的客户端
Windows 8
最低受支持的服务器
Windows Server 2012
标头
windows.foundation.h
另请参阅
IPropertyValue
IPropertyValueStatics