WindowsUpdateAdministrator.RequestRestart Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.