IUpdateServer.GetUpdateApprovals Method (UpdateScope)
Applies To: Windows Server Update Services
Gets the UpdateApprovalCollection of update approvals that match the specified criteria.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
UpdateApprovalCollection GetUpdateApprovals(
UpdateScope updatesToInclude
)
UpdateApprovalCollection^ GetUpdateApprovals(
UpdateScope^ updatesToInclude
)
abstract GetUpdateApprovals :
updatesToInclude:UpdateScope -> UpdateApprovalCollection
Function GetUpdateApprovals (
updatesToInclude As UpdateScope
) As UpdateApprovalCollection
Parameters
updatesToInclude
Type: Microsoft.UpdateServices.Administration.UpdateScopeThe UpdateScope specifying the update criteria.
Return Value
Type: Microsoft.UpdateServices.Administration.UpdateApprovalCollection
Exceptions
Exception
Condition
updatesToInclude is null.
updatesToInclude.FromArrivalDate is greater than updatesToInclude.ToArrivalDate
--or--
updatesToInclude.FromCreationDate is greater than updatesToInclude.ToCreationDate.
See Also
IUpdateServer Interface
Microsoft.UpdateServices.Administration Namespace
Return to top