Skip to content

Latest commit

 

History

History
68 lines (52 loc) · 2.02 KB

platform-ibox-interface.md

File metadata and controls

68 lines (52 loc) · 2.02 KB
title ms.custom ms.date ms.technology ms.reviewer ms.suite ms.tgt_pltfrm ms.topic f1_keywords dev_langs ms.assetid caps.latest.revision author ms.author manager
Platform::IBox Interface | Microsoft Docs
12/30/2016
cpp-windows
language-reference
VCCORLIB/Namespace not found::Platform
VCCORLIB/Namespace not found::Platform::Value
C++
774df45d-f8a7-45a3-ae24-eecc3c681040
5
ghogen
ghogen
ghogen

Platform::IBox Interface

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.

Requirements

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.

See Also

Platform namespace