Share via


WindowsUpdateAdministrator Class

Definition

Enables administration of Windows Updates on a device.

public ref class WindowsUpdateAdministrator sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Management.Update.WindowsUpdateContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class WindowsUpdateAdministrator final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Management.Update.WindowsUpdateContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class WindowsUpdateAdministrator
Public NotInheritable Class WindowsUpdateAdministrator
Inheritance
Object Platform::Object IInspectable WindowsUpdateAdministrator
Attributes

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.23504.0)
API contract
Windows.Management.Update.WindowsUpdateContract (introduced in v1.0)

Methods

ApproveWindowsUpdate(String, WindowsUpdateApprovalData)

Allows a WindowsUpdateAdministrator to mark an update as approved.

ApproveWindowsUpdateAction(String, String)

Allows a WindowsUpdateAdministrator to mark an update action as approved.

CancelRestartRequest(String)

Cancels a restart that was requested via RequestRestart.

GetRegisteredAdministrator(String)

Retrieves the administrator object that is needed to call the various update administration APIs.

GetRegisteredAdministratorName()

Queries the organization name of the currently registered update administrator.

GetUpdates()

Retrieves a list of all updates that are currently pending actions, and are known to the update administrator.

RegisterForAdministration(String, WindowsUpdateAdministratorOptions)

Registers a Windows update administrator on the device to allow fine-grained control of update activity.

RequestRestart(WindowsUpdateRestartRequestOptions)

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

RevokeWindowsUpdateActionApproval(String, String)

Revokes approval for an update action previously approved via ApproveWindowsUpdateAction.

RevokeWindowsUpdateApproval(String)

Revokes approval for an update action previously approved via ApproveWindowsUpdate.

StartAdministratorScan()

Starts a background scan for updates.

UnregisterForAdministration(String)

Unregisters a previously registered Windows update administrator on the device.

Applies to