Box(Void*, Type) Method
Boxes the supplied unmanaged memory pointer and the type associated with that pointer into a managed Pointer wrapper object. The value and the type are saved so they can be accessed from the native code during an invocation.
public: static System::Object ^ Box(void* ptr, Type ^ type);
[System.Security.SecurityCritical] public static object Box (void* ptr, Type type);
static member Box : nativeptr<unit> * Type -> obj
The supplied unmanaged memory pointer.
The type associated with the
A pointer object.
type is not a pointer.
Requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.