Pointer::Unbox Method (Object^)

 

Returns the stored pointer.

Namespace:   System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

public:
[SecurityCriticalAttribute]
static void* Unbox(
	Object^ ptr
)

Parameters

ptr
Type: System::Object^

The stored pointer.

Return Value

Type: System::Void*

This method returns void.

Exception Condition
ArgumentException

ptr is not a pointer.

SecurityCriticalAttribute

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

.NET Framework
Available since 1.1
Return to top
Show: