NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

GCHandle Properties

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

Public:

IsAllocated This method can be used to determine if the handle is still allocated. This method is particularly useful when using weak handles GCHandleType- Weak) since it provides a way of determining if the GC handle is still available. When the GC attempts to collect the object, the latter could still be resurrected in the finalizer. In this case, the handle will not be allocated (this is lost when the GC attempts to collect the object) although the Target object is valid.
Target Allows getting/ setting the Object this handle represents.

See Also

GCHandle Structure | System.Runtime.InteropServices Namespace