Share via


WeakReference Members

The following tables list the members exposed by the WeakReference type.

Public Constructors

Name Description
Public Method WeakReference Initializes a new instance of the WeakReference class, referencing a specified object.

Public Properties

Name Description
Public Property IsAlive Determines whether the object referenced by the current WeakReference object has been collected by the garbage collection mechanism.
Public Property Target Gets or sets the object (the target) referenced by the current WeakReference object.

Public Methods

Name Description
Public Method Equals (Inherited from Object.)
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method ReferenceEquals (Inherited from Object.)
Public Method ToString (Inherited from Object.)

Protected Methods

Name Description
Protected Method Finalize (Inherited from Object.)
Protected Method MemberwiseClone (Inherited from Object.)

See Also

Reference

WeakReference Class
System Namespace