IUpdate.ApproveForOptionalInstall Method (IComputerTargetGroup)
Applies To: Windows Server Update Services
Approves this update for optional installation.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
IUpdateApproval ApproveForOptionalInstall(
IComputerTargetGroup targetGroup
)
IUpdateApproval^ ApproveForOptionalInstall(
IComputerTargetGroup^ targetGroup
)
abstract ApproveForOptionalInstall :
targetGroup:IComputerTargetGroup -> IUpdateApproval
Function ApproveForOptionalInstall (
targetGroup As IComputerTargetGroup
) As IUpdateApproval
Parameters
targetGroup
Type: Microsoft.UpdateServices.Administration.IComputerTargetGroupThe IComputerTargetGroup for which the update is approved.
Return Value
Type: Microsoft.UpdateServices.Administration.IUpdateApproval
The newly-created IUpdateApproval.
Exceptions
Exception
Condition
targetGroup is null.
This update has a license agreement that must be accepted before it can be approved.
Remarks
This operation requires WSUS Administrator privileges.
See Also
IUpdate Interface
Microsoft.UpdateServices.Administration Namespace
Return to top