WebUIApplication.RequestRestartForUserAsync(User, String) WebUIApplication.RequestRestartForUserAsync(User, String) WebUIApplication.RequestRestartForUserAsync(User, String) WebUIApplication.RequestRestartForUserAsync(User, String) WebUIApplication.RequestRestartForUserAsync(User, String) Method

Definition

Requests that the system restarts the app in the context of a specific user.

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

Parameters

user
User User User

The target user. The app will be restarted in the context of this user.

launchArguments
String String String

Launch arguments to pass to the app when it restarts.

Returns

Additional features and requirements

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