ISubscription.GetSynchronizationHistory Method (DateTime, DateTime)
Applies To: Windows Server Update Services
Gets synchronization history that occurred during the specified time period.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
SynchronizationInfoCollection GetSynchronizationHistory(
DateTime fromDate,
DateTime toDate
)
SynchronizationInfoCollection^ GetSynchronizationHistory(
DateTime fromDate,
DateTime toDate
)
abstract GetSynchronizationHistory :
fromDate:DateTime *
toDate:DateTime -> SynchronizationInfoCollection
Function GetSynchronizationHistory (
fromDate As Date,
toDate As Date
) As SynchronizationInfoCollection
Parameters
fromDate
Type: System.DateTimeBegin date that is used to search for events. Specify the date in Coordinated Universal Time.
toDate
Type: System.DateTimeEnd date that is used to search for events. Specify the date in Coordinated Universal Time.
Return Value
Type: Microsoft.UpdateServices.Administration.SynchronizationInfoCollection
A SynchronizationInfoCollection collection that contains the synchronization history that overlaps the specified time period (the method returns the history if the start or end time falls within the period). The collection is unordered. The collection is empty if no events occurred during the time period.
Exceptions
Exception
Condition
fromDate cannot be greater than toDate.
Remarks
WSUS uses subscription events to generate synchronization history. The synchronization history is lost when subscription events are removed. Events are removed based on the ServerEventExpirationTime configuration setting.
To retrieve all synchronization history, call GetSynchronizationHistory.
To retrieve synchronization and subscription events, call GetEventHistory.
See Also
GetSynchronizationHistory Overload
ISubscription Interface
Microsoft.UpdateServices.Administration Namespace
Return to top