IUpdate.GetUpdateApprovals(IComputerTargetGroup)
Retrieves a collection of approvals for this update. The update must have been approved for deployment to the given target group.
public UpdateApprovalCollection GetUpdateApprovals(
IComputerTargetGroup targetGroup
);
Public Function GetUpdateApprovals( _
ByVal targetGroup As IComputerTargetGroup _
) As UpdateApprovalCollection
Implements IUpdate.GetUpdateApprovals
Parameters
- targetGroup
Target group for which you want to retrieve a list of approvals for this update.
Return Values
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 type | Condition |
---|---|
System.ArgumentNullException | targetGroup cannot be null. |
WsusObjectNotFoundException | The update was not found in the database. |
Remarks
To further limit the collection, call IUpdate.GetUpdateApprovals(IComputerTargetGroup, UpdateApprovalAction, DateTime, DateTime).
To retrieve all approvals for this update, call IUpdate.GetUpdateApprovals().
Requirements
Server | Requires Windows Server 2003 or Windows 2000 Server SP4 and later. |
Namespace | Defined in Microsoft.UpdateServices.Administration. |
Assembly | Requires Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll). |
.NET Framework | Requires .NET Framework 1.1. |