WeakReference: CreateChild

CreateChild

Creates a new weak reference without allocating addition resources to maintain reference integrity.



 Public Function CreateChild ( ) As WeakReference

Return Values

WeakReference -  A child version of the parent weak reference.

Remarks

If multiple weak references want to be maintained on a single object, creating child weak references is the most efficient method.

You cannot set the target to anything other than Nothing on a child weak reference. This is to preserve the integerity of the controlling weak reference and the referenced object.

If the controlling weak reference loses reference to the Target object, all child weak references will also lose reference.

See Also

Project CorLib Overview
Class WeakReference Overview