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

Inherited from IPropertyValue

Type Type Type Type

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

Inherited from IPropertyValue

GetChar16 GetChar16 GetChar16 GetChar16

Inherited from IPropertyValue

GetDateTime GetDateTime GetDateTime GetDateTime

Inherited from IPropertyValue

GetDouble GetDouble GetDouble GetDouble

Inherited from IPropertyValue

GetGuid GetGuid GetGuid GetGuid

Inherited from IPropertyValue

GetInt16 GetInt16 GetInt16 GetInt16

Inherited from IPropertyValue

GetInt32 GetInt32 GetInt32 GetInt32

Inherited from IPropertyValue

GetInt64 GetInt64 GetInt64 GetInt64

Inherited from IPropertyValue

GetPoint GetPoint GetPoint GetPoint

Inherited from IPropertyValue

GetRect GetRect GetRect GetRect

Inherited from IPropertyValue

GetSingle GetSingle GetSingle GetSingle

Inherited from IPropertyValue

GetSize GetSize GetSize GetSize

Inherited from IPropertyValue

GetString GetString GetString GetString

Inherited from IPropertyValue

GetTimeSpan GetTimeSpan GetTimeSpan GetTimeSpan

Inherited from IPropertyValue

GetUInt16 GetUInt16 GetUInt16 GetUInt16

Inherited from IPropertyValue

GetUInt32 GetUInt32 GetUInt32 GetUInt32

Inherited from IPropertyValue

GetUInt64 GetUInt64 GetUInt64 GetUInt64

Inherited from IPropertyValue

GetUInt8 GetUInt8 GetUInt8 GetUInt8

Inherited from IPropertyValue

See Also