Constructors
-
Weak
Reference(Object) Initializes a new instance of the WeakReference class, referencing the specified object. -
Weak
Reference(Object, Initializes a new instance of the WeakReference class, referencing the specified object and using the specified resurrection tracking.Boolean) -
Weak
Reference(Serialization protected Initializes a new instance of the WeakReference class, using deserialized data from the specified serialization and stream objects.Info, Streaming Context)
Methods
- Finalize() protectedvirtual Discards the reference to the target represented by the current WeakReference object.
-
Get
Object virtual Populates a SerializationInfo object with all the data needed to serialize the current WeakReference object.Data(Serialization Info, Streaming Context)
Properties
-
Is
Alive virtual Gets an indication whether the object referenced by the current WeakReference object has been garbage collected. - Target virtual Gets or sets the object (the target) referenced by the current WeakReference object.
-
Track
Resurrection virtual Gets an indication whether the object referenced by the current WeakReference object is tracked after it is finalized.