Share via


WindowsUpdateAdministrator.ApproveWindowsUpdateAction(String, String) Method

Definition

Allows a WindowsUpdateAdministrator to mark an update action as approved.

public:
 virtual void ApproveWindowsUpdateAction(Platform::String ^ updateId, Platform::String ^ action) = ApproveWindowsUpdateAction;
void ApproveWindowsUpdateAction(winrt::hstring const& updateId, winrt::hstring const& action);
public void ApproveWindowsUpdateAction(string updateId, string action);
function approveWindowsUpdateAction(updateId, action)
Public Sub ApproveWindowsUpdateAction (updateId As String, action As String)

Parameters

updateId
String

Platform::String

winrt::hstring

The unique ID associated with an update (in order to identify it).

action
String

Platform::String

winrt::hstring

The string associated with the action that the administrator wants to approve.

Remarks

The update ID will generally be a GUID, but it can be any string that uniquely identifies it.

The action string will most commonly be "Download" or "Install". Other possible actions include "Uninstall", "Commit", and "PostReboot".

This call fails if the updateId provided doesn't match any updates found by a previous scan.

Applies to