IUpdateServer.ExpirePackage Method (UpdateRevisionId)

 

Applies To: Windows Server Update Services

Causes a locally-published package to become expired.

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

Syntax

void ExpirePackage(
    UpdateRevisionId id
)
void ExpirePackage(
    UpdateRevisionId^ id
)
abstract ExpirePackage : 
        id:UpdateRevisionId -> unit
Sub ExpirePackage (
    id As UpdateRevisionId
)

Parameters

Exceptions

Exception

Condition

InvalidOperationException

The update to be expired is not a locally-published update and has no saved SDP information, or the specific revision is missing from the WSUS database.

ArgumentNullException

id is null.

WsusObjectNotFoundException

The revision number is 0 and the update does not exist in the database, so that the

latest revision of the update cannot be expired.

Remarks

[This method can be found only in the API delivered with WSUS 3.0 SP1.] This operation requires WSUS Administrator privileges.

See Also

IUpdateServer Interface
Microsoft.UpdateServices.Administration Namespace

Return to top