IUpdateServer.ExpirePackage Method
Causes a locally-published package to become expired.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in microsoft.updateservices.administration.dll)
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in microsoft.updateservices.administration.dll)
Dim instance As IUpdateServer Dim id As UpdateRevisionId instance.ExpirePackage(id)
| Exception type | 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. |
[This method can be found only in the API delivered with WSUS 3.0 SP1.] This operation requires WSUS Administrator privileges.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Development Platforms