WebUIApplication.RequestRestartAsync(String) WebUIApplication.RequestRestartAsync(String) WebUIApplication.RequestRestartAsync(String) WebUIApplication.RequestRestartAsync(String) WebUIApplication.RequestRestartAsync(String) Method

Definition

Attempts to programatically restart the application.

public : static IAsyncOperation<AppRestartFailureReason> RequestRestartAsync(Platform::String launchArguments)
static IAsyncOperation<AppRestartFailureReason> RequestRestartAsync(winrt::hstring launchArguments) const;
public static IAsyncOperation<AppRestartFailureReason> RequestRestartAsync(String launchArguments)
Public Shared Function RequestRestartAsync(launchArguments As String) As IAsyncOperation(Of AppRestartFailureReason)
Windows.UI.WebUI.WebUIApplication.requestRestartAsync(launchArguments).done( /* Your success and error handlers */ );

Parameters

launchArguments
String String String

Returns

Additional features and requirements

Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)