Поделиться через


ISubscription Interface

 

Applies To: Windows Server Update Services

Used to view or modify the synchronization settings and to start the synchronization process manually or automatically. 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 GetSubscription.

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

Syntax

public interface ISubscription
public interface class ISubscription
type ISubscription = interface end
Public Interface ISubscription

Properties

Name Description
System_CAPS_pubproperty LastModifiedBy

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

System_CAPS_pubproperty LastModifiedTime

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

System_CAPS_pubproperty NumberOfSynchronizationsPerDay

Gets or sets the number of server-to-server synchronizations a day.

System_CAPS_pubproperty SynchronizeAutomatically

Determines whether the WSUS server synchronizes the updates automatically.

System_CAPS_pubproperty SynchronizeAutomaticallyTimeOfDay

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

Methods

Name Description
System_CAPS_pubmethod GetEventHistory()

Gets all subscription and synchronization events.

System_CAPS_pubmethod GetEventHistory(DateTime, DateTime)

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

System_CAPS_pubmethod GetLastSynchronizationInfo()

Gets the synchronization history of the last synchronization.

System_CAPS_pubmethod GetNextSynchronizationTime()

Gets the next time the server will synchronize the updates.

System_CAPS_pubmethod GetSynchronizationHistory()

Gets all synchronization history in the database.

System_CAPS_pubmethod GetSynchronizationHistory(DateTime, DateTime)

Gets synchronization history that occurred during the specified time period.

System_CAPS_pubmethod GetSynchronizationProgress()

Gets the synchronization progress, if the server is currently synchronizing updates.

System_CAPS_pubmethod GetSynchronizationStatus()

Gets the status of the synchronization process.

System_CAPS_pubmethod GetUpdateCategories()

Gets the categories of updates synchronized by the WSUS server, for example, updates for Windows Server 2003 or for the Windows product family.

System_CAPS_pubmethod GetUpdateClassifications()

Gets the classifications of updates that the WSUS server synchronizes, for example, security or critical updates.

System_CAPS_pubmethod Save()

Saves changes to the WSUS server subscription settings.

System_CAPS_pubmethod SetUpdateCategories(UpdateCategoryCollection)

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

System_CAPS_pubmethod SetUpdateClassifications(UpdateClassificationCollection)

Sets the classifications of updates that WSUS synchronizes, for example, security or critical updates.

System_CAPS_pubmethod StartSynchronization()

Starts the WSUS server synchronization process.

System_CAPS_pubmethod StartSynchronizationForCategoryOnly()

This is a revised version of StartSynchronization. StartSynchronizationForCategoryOnly only processes the categories and detectoids but not software/driver updates, which is essentially the first part of StartSynchronization.

System_CAPS_pubmethod StopSynchronization()

Stops the WSUS server synchronization process if it is running.

See Also

Microsoft.UpdateServices.Administration Namespace

Return to top