marshal_context::marshal_context
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at marshal_context::marshal_context.
Constructs a marshal_context object to use for data conversion between managed and native data types.
marshal_context();
Some data conversions require a marshal context. See Overview of Marshaling in C++ for more information about which translations require a context and which marshaling file has to be included in your application.
See the example for marshal_context::marshal_as.
Header file: <msclr\marshal.h>, <msclr\marshal_windows.h>, <msclr\marshal_cppstd.h>, or <msclr\marshal_atl.h>
Namespace: msclr::interop
Overview of Marshaling in C++
marshal_as
marshal_context Class