This topic has not yet been rated - Rate this topic

IUpdateServer.ExpirePackage Method

Causes a locally-published package to become expired.


Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in microsoft.updateservices.administration.dll)
  Dim instance As IUpdateServer
Dim id As UpdateRevisionId

instance.ExpirePackage(id)
void ExpirePackage (
	UpdateRevisionId id
)
void ExpirePackage (
	UpdateRevisionId id
)
function ExpirePackage (
	id : UpdateRevisionId
)

Parameters

id

An UpdateRevisionId object denoting the package to be expired.

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

Target Platforms

Windows Server 2008, Windows Server 2003, Windows Server 2008 R2
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ