C# Класс System.Windows.Mvvm.Services.Application.ApplicationService

Represents a service, that provides functionality to manage the application life-cycle.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Restart() публичный Метод

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
Результат void

Shutdown() публичный Метод

Shuts down the application with a standard error code (0x0).
public Shutdown ( ) : void
Результат void

Shutdown() публичный Метод

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.
Результат void