WeakReference.TrackResurrection WeakReference.TrackResurrection WeakReference.TrackResurrection WeakReference.TrackResurrection Property

定义

获取当前 WeakReference 对象引用的对象在终止后是否会被跟踪的指示。Gets an indication whether the object referenced by the current WeakReference object is tracked after it is finalized.

public:
 virtual property bool TrackResurrection { bool get(); };
public virtual bool TrackResurrection { get; }
member this.TrackResurrection : bool
Public Overridable ReadOnly Property TrackResurrection As Boolean

属性值

如果当前 WeakReference 对象引用的对象在终止后会被跟踪,则为 true;否则,如果该对象仅在终止前被跟踪,则为 falsetrue if the object the current WeakReference object refers to is tracked after finalization; or false if the object is only tracked until finalization.

注解

如果true,弱引用是长弱引用和true为指定trackResurrection中的参数WeakReference构造函数。If true, the weak reference is a long weak reference and true was specified for the trackResurrection parameter in the WeakReference constructor.

适用于

另请参阅