नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
The Platform::IBox interface is the C++ name for the Windows::Foundation::IReference interface.
Syntax
template <typename T>
interface class IBox
Parameters
T
The type of the boxed value.
Remarks
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.
Members
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. |
IBox::Value Property
Returns the value that was originally stored in this object.
Syntax
property T Value {T get();}
Parameters
T
The type of the boxed value.
Property Value/Return Value
Returns the value that was originally stored in this object.
Remarks
For an example, see Boxing.