Compartir a través de


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

Return Value

Type: Microsoft.UpdateServices.Administration.UpdateApprovalCollection

A UpdateApprovalCollection.

Exceptions

Exception

Condition

ArgumentNullException

updatesToInclude is null.

ArgumentOutOfRangeException

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