C# Class System.Windows.Mvvm.Services.Application.ApplicationService

Represents a service, that provides functionality to manage the application life-cycle.
Exibir arquivo Open project: lecode-official/mvvm-framework Class Usage Examples

Public Methods

Method Description
Restart ( ) : void

Shuts down the current instance of the application and directly launches a new instance. Be careful using this method, since the underlying implementation has problems with preserving the command line arguments.

Shutdown ( ) : void

Shuts down the application with a standard error code (0x0).

Shutdown ( int exitCode ) : void

Shuts down the application with the provided exit code.

Method Details

Restart() public method

Shuts down the current instance of the application and directly launches a new instance. Be careful using this method, since the underlying implementation has problems with preserving the command line arguments.
public Restart ( ) : void
return void

Shutdown() public method

Shuts down the application with a standard error code (0x0).
public Shutdown ( ) : void
return void

Shutdown() public method

Shuts down the application with the provided exit code.
public Shutdown ( int exitCode ) : void
exitCode int The exit code that is handed to the operating system to specify the result of the application. This could be an error or success code.
return void