StartWithClassicDesktopLifetime(AppBuilder, String[], ShutdownMode) Method
Starts the Application with a IClassicDesktopStyleApplicationLifetime, shows main window and runs application main loop.
Definition
Namespace: Avalonia
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public static int StartWithClassicDesktopLifetime(
this AppBuilder builder,
string[] args,
ShutdownMode shutdownMode
)
<ExtensionAttribute>
Public Shared Function StartWithClassicDesktopLifetime (
builder As AppBuilder,
args As String(),
shutdownMode As ShutdownMode
) As Integer
[<ExtensionAttribute>]
static member StartWithClassicDesktopLifetime :
builder : AppBuilder *
args : string[] *
shutdownMode : ShutdownMode -> int
Parameters
- AppBuilder
- Application builder.
- String[]
- Startup arguments.
- ShutdownMode
- Lifetime shutdown mode.
Return Value
Int32
Exit code.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type AppBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also
Reference
ClassicDesktopStyleApplicationLifetimeExtensions Class
StartWithClassicDesktopLifetime Overload
Avalonia Namespace