WeakReference(Of T) Class
Represents a typed weak reference, which references an object while still allowing that object to be reclaimed by garbage collection.
Assembly: mscorlib (in mscorlib.dll)
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Discards the reference to the target that is represented by the current Object.Finalize().)object.(Overrides
Serves as the default hash function. (Inherited from Object.)
Populates a SerializationInfo object with all the data necessary to serialize the current object.
Sets the target object that is referenced by thisobject.
Returns a string that represents the current object.(Inherited from Object.)
Tries to retrieve the target object that is referenced by the currentobject.
A weak reference enables the garbage collector to collect an object while still allowing an application to access the object. If you need the object, you can obtain a strong reference to it and prevent it from being collected.
Available since 8
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Available since 8.1
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.