PropertyType 枚举
参考
反馈
定义
命名空间:
Windows.Foundation
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
编辑
指定属性值类型。
public enum class PropertyType
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
enum class PropertyType
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
public enum PropertyType
var value = Windows.Foundation.PropertyType.empty
Public Enum PropertyType
继承
Enum
PropertyType
属性
ContractVersionAttribute
Windows 要求
设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.FoundationContract (在 v1.0 中引入)
字段
名称
值
说明
Boolean
11
一个值,该值只能为 true 或 false。
BooleanArray
1035
布尔值的数组。
Char16
10
无符号 16 位 (2 字节) 码位。
Char16Array
1034
Char 值的数组。
DateTime
14
以时间表示的瞬间,通常表示为一天中的日期和时间。
DateTimeArray
1038
DateTime 值的数组。
Double
9
有符号 64 位 (8 字节) 浮点数。
DoubleArray
1033
Double 值的数组。
Empty
0
未指定类型。
Guid
16
全局唯一标识符。
GuidArray
1040
Guid 值的数组。
Inspectable
13
实现 IInspectable 接口的对象。
InspectableArray
1037
可检查值的数组。
Int16
2
有符号 16 位 (2 字节) 整数。
Int16Array
1026
Int16 值的数组。
Int32
4
32 位有符号 (4 字节) 整数。
Int32Array
1028
Int32 值的数组。
Int64
6
64 位有符号 (8 字节) 整数。
Int64Array
1030
Int64 值的数组。
OtherType
20
此枚举中未指定的类型。
OtherTypeArray
1044
未指定类型的数组。
Point
17
一对有序的浮点 x 和 y 坐标,用于定义二维平面中的点。
PointArray
1041
点结构的数组。
Rect
19
一组浮点数,共四个,表示一个矩形的位置和大小。
RectArray
1043
Rect 结构的数组。
Single
8
有符号 32 位 (4 字节) 浮点数。
SingleArray
1032
单个值的数组。
Size
18
指定高度和宽度的浮点数的有序对。
SizeArray
1042
大小结构的数组。
String
12
Windows 运行时 HSTRING。
StringArray
1036
字符串值的数组。
TimeSpan
15
时间间隔。
TimeSpanArray
1039
TimeSpan 值的数组。
UInt16
3
无符号 16 位 (2 字节) 整数。
UInt16Array
1027
UInt16 值的数组。
UInt32
5
无符号 32 位 (4 字节) 整数。
UInt32Array
1029
UInt32 值的数组。
UInt64
7
无符号 64 位 (8 字节) 整数。
UInt64Array
1031
UInt64 值的数组。
UInt8
1
一个字节。
UInt8Array
1025
字节值的数组。
注解
此枚举由 IPropertyValue.Type 和 BitmapTypedValue.Type 用作值。
适用于
另请参阅
PropertySet
Type