PropertyType 列舉 (windows.foundation.h)

識別儲存在實作 IPropertyValue 介面之 Windows 執行階段 物件中的類型。

Syntax

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