WeakReference Members
.NET Framework 2.0
Represents a weak reference, which references an object while still allowing that object to be garbage collected.
The following tables list the members exposed by the WeakReference type.
(see also
Protected Constructors
)
Top
| Name | Description | |
|---|---|---|
| WeakReference | Overloaded. Initializes a new instance of the WeakReference class. |
| Name | Description | |
|---|---|---|
| WeakReference | Overloaded. Initializes a new instance of the WeakReference class. |
| Name | Description | |
|---|---|---|
| IsAlive | Gets an indication whether the object referenced by the current WeakReference object has been garbage collected. |
| Target | Gets or sets the object (the target) referenced by the current WeakReference object. |
| TrackResurrection | Gets an indication whether the object referenced by the current WeakReference object is tracked after it is finalized. |
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| Equals | Overloaded. Determines whether two Object instances are equal. (Inherited from Object.) |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
| GetObjectData | Populates a SerializationInfo object with all the data needed to serialize the current WeakReference object. |
| GetType | Gets the Type of the current instance. (Inherited from Object.) |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object.) |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| Finalize | Overridden. Discards the reference to the target represented by the current WeakReference object. |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |