次の方法で共有


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

Return Value

Type: Microsoft.UpdateServices.Administration.IUpdateApproval

The newly-created IUpdateApproval.

Exceptions

Exception

Condition

ArgumentNullException

targetGroup is null.

InvalidOperationException

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