IPropertyValue IPropertyValue IPropertyValue IPropertyValue IPropertyValue Interface

Definition

Represents a value in a property store. You can't implement this interface, see Remarks.

public : interface IPropertyValue
struct winrt::Windows::Foundation::IPropertyValue
public interface IPropertyValue
Public Interface IPropertyValue
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced v1)

Remarks

The IPropertyValue interface is a store for values whose type is not known until runtime.

To obtain the value stored in an IPropertyValue object, when the type of the stored property is not known ahead of time, you should first determine the stored type from the Type property and then call the appropriate IPropertyValue method for the type.

If the type is known ahead of time, you can the type access method of IPropertyValue interface directory and check for the return value to verify type returned was what is expected. If the type returned does not match the value of the Type property then the method fails with the TYPE_E_TYPEMISMATCH error.

You can't implement the IPropertyValue interface or include it in a signature. IPropertyValue is mainly an internal implementation detail of how the Windows Runtime implements boxing and nullable values.

Properties

IsNumericScalar IsNumericScalar IsNumericScalar IsNumericScalar IsNumericScalar

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

Type Type Type Type Type

Returns the type stored in the property value.

Methods

GetBoolean() GetBoolean() GetBoolean() GetBoolean() GetBoolean()

Returns the Boolean value stored as a property value.

GetBooleanArray(Boolean[]) GetBooleanArray(Boolean[]) GetBooleanArray(Boolean[]) GetBooleanArray(Boolean[]) GetBooleanArray(Boolean[])

Returns the array of Boolean values stored as a property value.

GetChar16() GetChar16() GetChar16() GetChar16() GetChar16()

Returns the Unicode character stored as a property value.

GetChar16Array(Char[]) GetChar16Array(Char[]) GetChar16Array(Char[]) GetChar16Array(Char[]) GetChar16Array(Char[])

Returns the array of Unicode characters stored as a property value.

GetDateTime() GetDateTime() GetDateTime() GetDateTime() GetDateTime()

Returns the date and time value stored as a property value.

GetDateTimeArray(DateTime[]) GetDateTimeArray(DateTime[]) GetDateTimeArray(DateTime[]) GetDateTimeArray(DateTime[]) GetDateTimeArray(DateTime[])

Returns the array of date and time values stored as a property value.

GetDouble() GetDouble() GetDouble() GetDouble() GetDouble()

Returns the floating-point value stored as a property value.

GetDoubleArray(Double[]) GetDoubleArray(Double[]) GetDoubleArray(Double[]) GetDoubleArray(Double[]) GetDoubleArray(Double[])

Returns the array of floating-point values stored as a property value.

GetGuid() GetGuid() GetGuid() GetGuid() GetGuid()

Returns the GUID value stored as a property value.

GetGuidArray(Guid[]) GetGuidArray(Guid[]) GetGuidArray(Guid[]) GetGuidArray(Guid[]) GetGuidArray(Guid[])

Returns the array of GUID values stored as a property value.

GetInspectableArray(Object[]) GetInspectableArray(Object[]) GetInspectableArray(Object[]) GetInspectableArray(Object[]) GetInspectableArray(Object[])

Returns the array of inspectable objects stored as a property value.

GetInt16() GetInt16() GetInt16() GetInt16() GetInt16()

Returns the integer value stored as a property value.

GetInt16Array(Int16[]) GetInt16Array(Int16[]) GetInt16Array(Int16[]) GetInt16Array(Int16[]) GetInt16Array(Int16[])

Returns the array of integer values stored as a property value.

GetInt32() GetInt32() GetInt32() GetInt32() GetInt32()

Returns the integer value stored as a property value.

GetInt32Array(Int32[]) GetInt32Array(Int32[]) GetInt32Array(Int32[]) GetInt32Array(Int32[]) GetInt32Array(Int32[])

Returns the array of integer values stored as a property value.

GetInt64() GetInt64() GetInt64() GetInt64() GetInt64()

Returns the integer value stored as a property value.

GetInt64Array(Int64[]) GetInt64Array(Int64[]) GetInt64Array(Int64[]) GetInt64Array(Int64[]) GetInt64Array(Int64[])

Returns the array of integer values stored as a property value.

GetPoint() GetPoint() GetPoint() GetPoint() GetPoint()

Returns the point structure stored as a property value.

GetPointArray(Point[]) GetPointArray(Point[]) GetPointArray(Point[]) GetPointArray(Point[]) GetPointArray(Point[])

Returns the array of point structures stored as a property value.

GetRect() GetRect() GetRect() GetRect() GetRect()

Returns the rectangle structure stored as a property value.

GetRectArray(Rect[]) GetRectArray(Rect[]) GetRectArray(Rect[]) GetRectArray(Rect[]) GetRectArray(Rect[])

Returns the array of rectangle structures stored as a property value.

GetSingle() GetSingle() GetSingle() GetSingle() GetSingle()

Returns the floating-point value stored as a property value.

GetSingleArray(Single[]) GetSingleArray(Single[]) GetSingleArray(Single[]) GetSingleArray(Single[]) GetSingleArray(Single[])

Returns the array of floating-point values stored as a property value.

GetSize() GetSize() GetSize() GetSize() GetSize()

Returns the size structure stored as a property value.

GetSizeArray(Size[]) GetSizeArray(Size[]) GetSizeArray(Size[]) GetSizeArray(Size[]) GetSizeArray(Size[])

Returns the array of size structures stored as a property value.

GetString() GetString() GetString() GetString() GetString()

Returns the string value stored as a property value.

GetStringArray(String[]) GetStringArray(String[]) GetStringArray(String[]) GetStringArray(String[]) GetStringArray(String[])

Returns the array of string values stored as a property value.

GetTimeSpan() GetTimeSpan() GetTimeSpan() GetTimeSpan() GetTimeSpan()

Returns the time interval value stored as a property value.

GetTimeSpanArray(TimeSpan[]) GetTimeSpanArray(TimeSpan[]) GetTimeSpanArray(TimeSpan[]) GetTimeSpanArray(TimeSpan[]) GetTimeSpanArray(TimeSpan[])

Returns the array of time interval values stored as a property value.

GetUInt16() GetUInt16() GetUInt16() GetUInt16() GetUInt16()

Returns the unsigned integer value stored as a property value.

GetUInt16Array(UInt16[]) GetUInt16Array(UInt16[]) GetUInt16Array(UInt16[]) GetUInt16Array(UInt16[]) GetUInt16Array(UInt16[])

Returns the array of unsigned integer values stored as a property value.

GetUInt32() GetUInt32() GetUInt32() GetUInt32() GetUInt32()

Returns the unsigned integer value stored as a property value.

GetUInt32Array(UInt32[]) GetUInt32Array(UInt32[]) GetUInt32Array(UInt32[]) GetUInt32Array(UInt32[]) GetUInt32Array(UInt32[])

Returns the array of unsigned integer values stored as a property value.

GetUInt64() GetUInt64() GetUInt64() GetUInt64() GetUInt64()

Returns the unsigned integer value stored as a property value.

GetUInt64Array(UInt64[]) GetUInt64Array(UInt64[]) GetUInt64Array(UInt64[]) GetUInt64Array(UInt64[]) GetUInt64Array(UInt64[])

Returns the array of unsigned integer values stored as a property value.

GetUInt8() GetUInt8() GetUInt8() GetUInt8() GetUInt8()

Returns the byte value stored as a property value.

GetUInt8Array(Byte[]) GetUInt8Array(Byte[]) GetUInt8Array(Byte[]) GetUInt8Array(Byte[]) GetUInt8Array(Byte[])

Returns the array of byte values stored as a property value.