Share via


WindowsUpdateAdministrator.RequestRestart Method

Definition

Requests a restart that will allow the device to complete updates at a convenient time.

public:
 static Platform::String ^ RequestRestart(WindowsUpdateRestartRequestOptions ^ restartOptions);
 static winrt::hstring RequestRestart(WindowsUpdateRestartRequestOptions const& restartOptions);
public static string RequestRestart(WindowsUpdateRestartRequestOptions restartOptions);
function requestRestart(restartOptions)
Public Shared Function RequestRestart (restartOptions As WindowsUpdateRestartRequestOptions) As String

Parameters

restartOptions
WindowsUpdateRestartRequestOptions

WindowsUpdateRestartRequestOptions that specify details about the restart request.

Returns

String

Platform::String

winrt::hstring

An identifier associated with the restart request.

Remarks

This API creates a dummy update that is pending restart, so that it will be treated the same as an actual update that requires a restart.

The identifier returned from this API can be passed to CancelRestartRequest in order to cancel a previously requested restart.

Applies to