WindowsUpdateAdministrator.ApproveWindowsUpdate 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.
Allows a WindowsUpdateAdministrator to mark an update as approved.
public:
virtual void ApproveWindowsUpdate(Platform::String ^ updateId, WindowsUpdateApprovalData ^ approvalData) = ApproveWindowsUpdate;
void ApproveWindowsUpdate(winrt::hstring const& updateId, WindowsUpdateApprovalData const& approvalData);
public void ApproveWindowsUpdate(string updateId, WindowsUpdateApprovalData approvalData);
function approveWindowsUpdate(updateId, approvalData)
Public Sub ApproveWindowsUpdate (updateId As String, approvalData As WindowsUpdateApprovalData)
Parameters
- updateId
-
String
Platform::String
winrt::hstring
The unique ID associated with an update (in order to identify it).
- approvalData
- WindowsUpdateApprovalData
A collection of additional properties that can change how an update is processed. For details, see WindowsUpdateApprovalData.
Remarks
The update ID will generally be a GUID, but it can be any string that uniquely identifies it.
This call fails if the updateId provided doesn't match any updates found by a previous scan.