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.Free

Frees a GC handle. The caller must provide synchronization to prevent multiple threads from executing this call simultaneously for a given handle.

[Visual Basic]
Public Sub Free()
[C#]
public void Free();
[C++]
public: void Free();
[JScript]
public function Free();

Exceptions

Exception Type Condition
InvalidOperationException will be thrown if the handle was never initialized or if it was freed.

See Also

GCHandle Structure | GCHandle Members | System.Runtime.InteropServices Namespace