TryShutdown 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)
- C#
- VB
- F#
bool TryShutdown(
int exitCode = 0
)
Function TryShutdown (
Optional exitCode As Integer = 0
) As Boolean
abstract TryShutdown :
?exitCode : int
(* Defaults:
let _exitCode = defaultArg exitCode 0
*)
-> bool
Parameters
- Int32 (Optional)
- An integer exit code for an application. The default exit code is 0.
Return Value
BooleanSee Also
Reference
IClassicDesktopStyleApplicationLifetime Interface
Avalonia.Controls.ApplicationLifetimes Namespace