Поделиться через


IReference<T> interface

Enables extending the Windows Runtime property system for user-defined enumerations, structures, and delegate types.

Template parameters

  • T
    A Windows Runtime type that does not interface-require from the IInspectable interface. When used in a property, method signature, or delegate parameter, T must not be a delegate type or an HSTRING.

Members

The IReference<T> interface inherits from IPropertyValue. IReference also has these types of members:

  • Methods

Methods

The IReference<T> interface has these methods.

Method Description
get_Value

Gets the value that is stored in the IReference<T>.

 

Remarks

Do not create any IReference<T> instance that contains another IInspectable instance; instead, use the original instance.

Use the IReferenceArray<T> interface to represent an array of type T.

Language projections use the IReference<T> interface to represent "boxed" instances of Windows Runtime types.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

Windows.Foundation.Collections.h

See also

IPropertyValue

IReferenceArray<T>