Retrieves a Boolean indicating whether objects are tracked.
[Visual Basic] Overridable Public ReadOnly Property TrackResurrection As Boolean [C#] public bool TrackResurrection {virtual get;} [C++] public: __property virtual bool get_TrackResurrection(); [JScript] public function get TrackResurrection() : Boolean;
Read only. This property can have the following values:
Value | Description |
---|---|
true | The reference will refer to the target until it is reclaimed by the Runtime (until collection). |
false. | The reference will refer to the target until the first time it is detected to be unreachable by the Runtime (until finalization). |
The TrackResurrection property retrieves a Boolean indicating whether objects are tracked until they are collected (true) by the runtime or until they are finalized (false) when the first time it is detected to be unreachable by the Runtime (until finalization).
WeakReference Class | WeakReference Members | System Namespace | GCHandle | GC | System.Runtime