Share via


PropertyType Enum

Definition

Specifies property value types.

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
Inheritance
PropertyType
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced in v1.0)

Fields

Empty 0

No type is specified.

UInt8 1

A byte.

Int16 2

A signed 16-bit (2-byte) integer.

UInt16 3

An unsigned 16-bit (2-byte) integer.

Int32 4

A signed 32-bit (4-byte) integer.

UInt32 5

An unsigned 32-bit (4-byte) integer.

Int64 6

A signed 64-bit (8-byte) integer.

UInt64 7

An unsigned 64-bit (8-byte) integer.

Single 8

A signed 32-bit (4-byte) floating-point number.

Double 9

A signed 64-bit (8-byte) floating-point number.

Char16 10

An unsigned 16-bit (2-byte) code point.

Boolean 11

A value that can be only true or false.

String 12

A Windows Runtime HSTRING.

Inspectable 13

An object implementing the IInspectable interface.

DateTime 14

An instant in time, typically expressed as a date and time of day.

TimeSpan 15

A time interval.

Guid 16

A globally unique identifier.

Point 17

An ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane.

Size 18

An ordered pair of float-point numbers that specify a height and width.

Rect 19

A set of four floating-point numbers that represent the location and size of a rectangle.

OtherType 20

A type not specified in this enumeration.

UInt8Array 1025

An array of Byte values.

Int16Array 1026

An array of Int16 values.

UInt16Array 1027

An array of UInt16 values.

Int32Array 1028

An array of Int32 values.

UInt32Array 1029

An array of UInt32 values.

Int64Array 1030

An array of Int64 values.

UInt64Array 1031

An array of UInt64 values.

SingleArray 1032

An array of Single values.

DoubleArray 1033

An array of Double values.

Char16Array 1034

An array of Char values.

BooleanArray 1035

An array of Boolean values.

StringArray 1036

An array of String values.

InspectableArray 1037

An array of Inspectable values.

DateTimeArray 1038

An array of DateTime values.

TimeSpanArray 1039

An array of TimeSpan values.

GuidArray 1040

An array of Guid values.

PointArray 1041

An array of Point structures.

SizeArray 1042

An array of Size structures.

RectArray 1043

An array of Rect structures.

OtherTypeArray 1044

An array of an unspecified type.

Remarks

This enumeration is used as a value by IPropertyValue.Type and BitmapTypedValue.Type.

Applies to

See also