Pointer.Unbox(Object) Method

Definition

Returns the stored pointer.

public:
 static void* Unbox(System::Object ^ ptr);
[System.Security.SecurityCritical]
public static void* Unbox (object ptr);
static member Unbox : obj -> nativeptr<unit>

Parameters

ptr
Object

The stored pointer.

Returns

Void*

This method returns void.

Attributes

Exceptions

ptr is not a pointer.

Security

SecurityCriticalAttribute
Requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

Applies to