Mono Class Library: System.Runtime.InteropServices.GCHandle Overview | Members

System.Runtime.InteropServices.GCHandle.AddrOfPinnedObject Method

Returns the address of an object being referred to by a GCHandleType.Pinned handle.

public IntPtr AddrOfPinnedObject ()

Returns

A IntPtr containing the address of the of the GCHandleType.Pinned object as a IntPtr .

Permissions

TypeReason
System.Security.Permissions.SecurityPermissionRequires permission to call unmanaged code. See System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode .

Exceptions

TypeReason
InvalidOperationExceptionThe handle type is not GCHandleType.Pinned .

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0