WeakReference: Dispose

Dispose

Releases the reference to the Target object.



 Public Sub Dispose(
	  Optional ByVal ChildrenOnly As Boolean = False )

Parameters

ChildrenOnly
[ByVal] Optional. Boolean. True is this instance is the controlling WeakReference and only the children are to be disposed of.  

Default: False

Remarks

This allows the weak reference and its children to be disconnected from the Target object. The children themselves can be disposed of without disposing the controlling WeakReference.

See Also

Project CorLib Overview
Class WeakReference Overview