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!

WeakReference Constructor (Object)

Initializes a new instance of the WeakReference class with the specified object.

[Visual Basic]
Overloads Public Sub New( _
   ByVal target As Object _
)
[C#]
public WeakReference(
   object target
);
[C++]
public: WeakReference(
   Object* target
);
[JScript]
public function WeakReference(
   target : Object
);

Parameters

target
The object to track.

Exceptions

Exception Type Condition
ArgumentException If the target object is null.

Remarks

This WeakReference constructor creates a short weak reference to the specified object.

A short weak reference is tracked only until finalization (that is, trackResurrection is false). The reference will refer to the target until the first time it is detected to be unreachable by the runtime.

See Also

WeakReference Class | WeakReference Members | System Namespace | WeakReference Constructor Overload List | Object