IUpdate.ExpirePackage Method ()

 

Applies To: Windows Server Update Services

Revises the locally published package to expire it.

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

Syntax

void ExpirePackage()
void ExpirePackage()
abstract ExpirePackage : unit -> unit
Sub ExpirePackage

Exceptions

Exception

Condition

InvalidOperationException

Thrown when the package was not imported on this server (there is no SDP file in the database) or when the package was already expired.

Remarks

This operation requires WSUS Administrator privileges.

See Also

IUpdate Interface
Microsoft.UpdateServices.Administration Namespace

Return to top