IClassicDesktopStyleApplicationLifetimeTryShutdown Method
Tries to Shutdown the application.
ShutdownRequested event can be used to cancel the shutdown.
Namespace: Avalonia.Controls.ApplicationLifetimesAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
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
- exitCode Int32 (Optional)
- An integer exit code for an application. The default exit code is 0.
Boolean