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 .NET Micro Framework version 2.0, 2.5

See Also

Reference

WeakReference Class
WeakReference Members
System Namespace