Share via


WeakReference.IsAlive Property

Determines whether the object referenced by the current WeakReference object has been collected by the garbage collection mechanism.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

public virtual bool IsAlive { get; }

Property Value

true if the object referenced by the current object has not collected as garbage and is still accessible; otherwise, false.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

WeakReference Class
WeakReference Members
System Namespace