IReference<T> IReference<T> IReference<T> IReference<T> Interface

Definition

Enables arbitrary enumerations, structures, and delegate types to be used as property values.

.NET This interface appears as Nullable<T>.

C++/CX This interface appears as Platform::IBox<T>

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

Remarks

When programming with .NET, this interface is hidden and developers should use the Nullable<T> class. All Windows Runtime members where the basic IDL signature shows IReference (with a constraint) are instead exposed using the nullable syntax of the nullable value type (for example, ?bool).

When programming with C++/CX, this interface is hidden and developers should use the Platform::IBox<T> interface. All Windows Runtime members where the basic IDL signature shows IReference (with a constraint) are instead exposed using Platform::IBox<T> with the template as a particular value type. This is how C++/CX implements nullable value types. For more info, see Value classes and structs (C++/CX).

Because both .NET and C++/CX have projection equivalents, don't implement this interface unless you are using WRL and/or writing code for a Windows Runtime component and need a nullable value type.

Interface inheritance

IReference; inherits IPropertyValue. Types that implement IReference; also implement the interface members of IPropertyValue.

Properties

IsNumericScalar IsNumericScalar IsNumericScalar IsNumericScalar

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

(Inherited from IPropertyValue)

Type Type Type Type

Returns the type stored in the property value.

(Inherited from IPropertyValue)

Value Value Value Value

Gets the type that is represented as an IPropertyValue.

public : T Value { get; }
public T Value { get; }
Public ReadOnly Property Value As T
var t = iReference`1.value;
Value
T T T T

The type.

See Also

Methods

GetBoolean GetBoolean GetBoolean GetBoolean

Returns the Boolean value stored as a property value.

(Inherited from IPropertyValue)

GetChar16 GetChar16 GetChar16 GetChar16

Returns the Unicode character stored as a property value.

(Inherited from IPropertyValue)

GetDateTime GetDateTime GetDateTime GetDateTime

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

(Inherited from IPropertyValue)

GetDouble GetDouble GetDouble GetDouble

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

(Inherited from IPropertyValue)

GetGuid GetGuid GetGuid GetGuid

Returns the GUID value stored as a property value.

(Inherited from IPropertyValue)

GetInt16 GetInt16 GetInt16 GetInt16

Returns the integer value stored as a property value.

(Inherited from IPropertyValue)

GetInt32 GetInt32 GetInt32 GetInt32

Returns the integer value stored as a property value.

(Inherited from IPropertyValue)

GetInt64 GetInt64 GetInt64 GetInt64

Returns the integer value stored as a property value.

(Inherited from IPropertyValue)

GetPoint GetPoint GetPoint GetPoint

Returns the point structure stored as a property value.

(Inherited from IPropertyValue)

GetRect GetRect GetRect GetRect

Returns the rectangle structure stored as a property value.

(Inherited from IPropertyValue)

GetSingle GetSingle GetSingle GetSingle

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

(Inherited from IPropertyValue)

GetSize GetSize GetSize GetSize

Returns the size structure stored as a property value.

(Inherited from IPropertyValue)

GetString GetString GetString GetString

Returns the string value stored as a property value.

(Inherited from IPropertyValue)

GetTimeSpan GetTimeSpan GetTimeSpan GetTimeSpan

Returns the time interval value stored as a property value.

(Inherited from IPropertyValue)

GetUInt16 GetUInt16 GetUInt16 GetUInt16

Returns the unsigned integer value stored as a property value.

(Inherited from IPropertyValue)

GetUInt32 GetUInt32 GetUInt32 GetUInt32

Returns the unsigned integer value stored as a property value.

(Inherited from IPropertyValue)

GetUInt64 GetUInt64 GetUInt64 GetUInt64

Returns the unsigned integer value stored as a property value.

(Inherited from IPropertyValue)

GetUInt8 GetUInt8 GetUInt8 GetUInt8

Returns the byte value stored as a property value.

(Inherited from IPropertyValue)

See Also