WeakReference.TrackResurrection 属性

定义

获取当前 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

属性值

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 ,则弱引用为长弱引用,并且 truetrackResurrection 在构造函数中为参数指定的 WeakReferenceIf true, the weak reference is a long weak reference and true was specified for the trackResurrection parameter in the WeakReference constructor.

适用于

另请参阅