Mono Class Library: System.Environment Overview | Members

System.Environment.ExitCode Property

Gets or sets the exit code of a process.

Value: 0

public static int ExitCode { set; get; }

Value

A int value returned by a process. The default value is zero.

Remarks

When a process exits, if the process does not return a value, the value of Environment.ExitCode is returned. If the value of this property is not set by an application, zero is returned.

On operating systems that do not support process exit codes, CLI implementations are required to fully support getting and setting values for this property.

Requirements

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