Mono Class Library: System.Environment Overview | Members

System.Environment.HasShutdownStarted Property

Gets a value indicating whether an application has started to shut down.

public static bool HasShutdownStarted { get; }

Value

A bool where true indicates the shutdown process has started; otherwise false.

Remarks

This property is read-only.

Note:

This property is for use inside the finalizer of an application. If the shutdown process has started, static members should not be accessed; they might have been cleaned up by the garbage collector. If the member has been cleaned up, any access attempt will cause an exception to be thrown.

Console.Out is a special case that is always available after the shutdown process has started.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0