| title | Platform::Box Class | Microsoft Docs | |
|---|---|---|
| ms.custom | ||
| ms.date | 12/30/2016 | |
| ms.prod | windows-client-threshold | |
| ms.reviewer | ||
| ms.suite | ||
| ms.tgt_pltfrm | ||
| ms.topic | language-reference | |
| f1_keywords |
|
|
| dev_langs |
|
|
| ms.assetid | b3d7ea37-e98a-4fbc-80b0-ad35e50250c6 | |
| caps.latest.revision | 7 | |
| author | ghogen | |
| ms.author | ghogen | |
| manager | ghogen |
Enables a value type such as Windows::Foundation::DateTime or a scalar type such as int to be stored in a Platform::Object type. It is usually not necessary to use Box explicitly because boxing happens implicitly when you cast a value type to Object^.
ref class Box abstract; Header: vccorlib.h
Namespace: Platform