| description | Learn more about: Platform::IBox Interface | ||
|---|---|---|---|
| title | Platform::IBox Interface | ||
| ms.date | 12/30/2016 | ||
| ms.topic | reference | ||
| f1_keywords |
|
||
| ms.assetid | 774df45d-f8a7-45a3-ae24-eecc3c681040 |
The Platform::IBox interface is the C++ name for the Windows::Foundation::IReference interface.
template <typename T>
interface class IBoxT
The type of the boxed value.
The IBox<T> interface is primarily used internally to represent nullable value types, as described in Value classes and structs (C++/CX). The interface is also used to box value types that are passed to C++ methods that take parameters of type Object^. You can explicitly declare an input parameter as IBox<SomeValueType>. For an example, see Boxing.
The Platform::IBox interface inherits from the Platform::IValueType interface. IBox has these members:
Properties
| Method | Description |
|---|---|
| Value | Returns the unboxed value that was previously stored in this IBox instance. |
Returns the value that was originally stored in this object.
property T Value {T get();}T
The type of the boxed value.
Returns the value that was originally stored in this object.
For an example, see Boxing.