Skip to main content

Shutdown Method

Shuts down the application and sets the exit code that is returned to the operating system when the application exits.

Definition

Namespace: Avalonia.Controls.ApplicationLifetimes
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

void Shutdown(
int exitCode = 0
)
View Source

Parameters

  Int32  (Optional)
An integer exit code for an application. The default exit code is 0.

See Also

Reference

IControlledApplicationLifetime Interface
Avalonia.Controls.ApplicationLifetimes Namespace