Releases a System.Runtime.InteropServices.GCHandle.
Type Reason InvalidOperationException The handle has already been freed or was never initialized.
The caller must ensure that for a given handle, GCHandle.Free is called only once.
| Type | Reason |
|---|---|
| System.Security.Permissions.SecurityPermission | Requires permission to call unmanaged code. See System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode . |