Export (0) Print
Expand All

GCHandle Methods

The methods of the GCHandle structure are listed here. For a complete list of GCHandle structure members, see the GCHandle Members topic.

Public Methods

public methodAddrOfPinnedObject

Supported by the .NET Compact Framework.

Retrieves the address of an object in a Pinned handle.
public methodstatic (Shared in Visual Basic)Alloc

Supported by the .NET Compact Framework.

Overloaded. Allocates a handle for the specified object.
public methodEquals (inherited from ValueType)

Supported by the .NET Compact Framework.

Overridden. Indicates whether this instance and a specified object are equal.
public methodFree

Supported by the .NET Compact Framework.

Releases a GCHandle.
public methodGetHashCode (inherited from ValueType)

Supported by the .NET Compact Framework.

Overridden. Returns the hash code for this instance.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodToString (inherited from ValueType)

Supported by the .NET Compact Framework.

Overridden. Returns the fully qualified type name of this instance.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

GCHandle Structure | System.Runtime.InteropServices Namespace

Show:
© 2014 Microsoft