IClassicDesktopStyleApplicationLifetimeTryShutdown Method

Tries to Shutdown the application. ShutdownRequested event can be used to cancel the shutdown.

Definition

Namespace: Avalonia.Controls.ApplicationLifetimes
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
bool TryShutdown(
	int exitCode = 0
)

Parameters

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

Return Value

Boolean

See Also