ISubscription

Use this interface to view or modify the synchronization settings and to manually or automatically start the synchronization process.

Downstream servers receive synchronization settings from the upstream server. Downstream servers can modify and save synchronization settings; however, only the synchronization schedule is used by the downstream server, WSUS ignores the other settings. Downstream servers can also start and stop the synchronization process.

To retrieve this interface, call IUpdateServer.GetSubscription.

The ISubscription interface is derived from the System.Object class.

Public Methods

The ISubscription interface has the following public methods.

Method Description
Equals(Object)

Determines if the specified Object is equal to the current Object.

GetEventHistory()

Retrieves all subscription and synchronization events.

GetEventHistory(DateTime, DateTime)

Retrieves subscription and synchronization events that occurred during the specified time period.

GetHashCode()

Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.

GetLastSynchronizationInfo()

Retrieves the synchronization history of the last synchronization.

GetNextSynchronizationTime()

Retrieves the next time the server will synchronize the updates.

GetSynchronizationHistory()

Retrieves all synchronization history in the database.

GetSynchronizationHistory(DateTime, DateTime)

Retrieves synchronization history that occurred during the specified time period.

GetSynchronizationProgress()

Retrieves the synchronization progress if the server is currently synchronizing updates.

GetSynchronizationStatus()

Retrieves the status of the synchronization process.

GetType()

Retrieves the Type of the current instance.

GetUpdateCategories()

Retrieves the categories of updates that the WSUS server synchronizes.

GetUpdateClassifications()

Retrieves the classifications of updates that the WSUS server synchronizes.

Save()

Saves changes to the WSUS server synchronization settings.

SetUpdateCategories(UpdateCategoryCollection)

Specifies the categories of updates that you want the WSUS server to synchronize.

SetUpdateClassifications(UpdateClassificationCollection)

Specifies the classifications of updates that the WSUS synchronizes.

StartSynchronization()

Starts the WSUS server synchronization process.

StopSynchronization()

Stops the WSUS server synchronization process if it is running.

ToString()

Retrieves a String that represents the current Object.

Public Properties

The ISubscription interface has the following public properties.

Property Description
LastModifiedBy

Retrieves the name of the user who last modified the WSUS server subscription settings.

LastModifiedTime

Retrieves the last time the WSUS server subscription settings were modified.

SynchronizeAutomatically

Determines if the WSUS server automatically synchronizes the updates every day.

SynchronizeAutomaticallyTimeOfDay

Retrieves or sets the time of day when the WSUS server automatically synchronizes the updates.

Requirements

Server Requires Windows Server 2003 or Windows 2000 Server SP4 and later.
Namespace

Defined in Microsoft.UpdateServices.Administration.

Assembly

Requires Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll).

.NET Framework

Requires .NET Framework 1.1.