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
targetGroup
Type: Microsoft.UpdateServices.Administration.IComputerTargetGroupTarget group for which you want to get a list of approvals for this update.
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
targetGroup cannot be null.
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