Compartilhar via


ISubscription.GetSynchronizationProgress Method ()

 

Applies To: Windows Server Update Services

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

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

Syntax

SynchronizationProgress GetSynchronizationProgress()
SynchronizationProgress^ GetSynchronizationProgress()
abstract GetSynchronizationProgress : unit -> SynchronizationProgress
Function GetSynchronizationProgress As SynchronizationProgress

Return Value

Type: Microsoft.UpdateServices.Administration.SynchronizationProgress

A SynchronizationProgress that contains the total updates to synchronize and the number of updates that have synchronized so far.

Exceptions

Exception

Condition

InvalidOperationException

The subscription progress cannot be retrieved for unknown reasons.

Remarks

To determine if WSUS is currently synchronizing updates, call GetSynchronizationStatus. The status is Running if WSUS is currently synchronizing updates.

If the synchronization process is not running, NotProcessing.

If the server is not synchronizing, then the value for TotalItems and ProcessedItems will both be 0.

See Also

ISubscription Interface
Microsoft.UpdateServices.Administration Namespace

Return to top