IUpdate.GetUpdateApprovals Method (IComputerTargetGroup)

 

Applies To: Windows Server Update Services

Gets a collection of approvals for this update. The update must have been approved for deployment to the given target group.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

Syntax

UpdateApprovalCollection GetUpdateApprovals(
    IComputerTargetGroup targetGroup
)
UpdateApprovalCollection^ GetUpdateApprovals(
    IComputerTargetGroup^ targetGroup
)
abstract GetUpdateApprovals : 
        targetGroup:IComputerTargetGroup -> UpdateApprovalCollection
Function GetUpdateApprovals (
    targetGroup As IComputerTargetGroup
) As UpdateApprovalCollection

Parameters

Return Value

Type: Microsoft.UpdateServices.Administration.UpdateApprovalCollection

An UpdateApprovalCollection collection that contains the list of all approvals for this update in the given target group. The collection is empty if the update is not approved for deployment to the target group.

Exceptions

Exception

Condition

ArgumentNullException

targetGroup cannot be null.

WsusObjectNotFoundException

The update was not found in the database.

Remarks

To further limit the collection, call GetUpdateApprovals.

To get all approvals for this update, call GetUpdateApprovals.

See Also

GetUpdateApprovals Overload
IUpdate Interface
Microsoft.UpdateServices.Administration Namespace

Return to top