IUpdateServer.GetUpdateEventHistory Method (DateTime, DateTime, Guid)
Applies To: Windows Server Update Services
Gets all installation events that were raised by all clients for the specified update and date range.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
UpdateEventCollection GetUpdateEventHistory(
DateTime fromDate,
DateTime toDate,
Guid updateId
)
UpdateEventCollection^ GetUpdateEventHistory(
DateTime fromDate,
DateTime toDate,
Guid updateId
)
abstract GetUpdateEventHistory :
fromDate:DateTime *
toDate:DateTime *
updateId:Guid -> UpdateEventCollection
Function GetUpdateEventHistory (
fromDate As Date,
toDate As Date,
updateId As Guid
) As UpdateEventCollection
Parameters
fromDate
Type: System.DateTimeBegin date to search for events raised to the WSUS server for the specified update by all clients. Specify the date in Coordinated Universal Time.
toDate
Type: System.DateTimeEnd date to search for events raised to the WSUS server for the specified update by all clients. Specify the date in Coordinated Universal Time.
updateId
Type: System.GuidIdentifier of the update whose installation history you want to get.
Return Value
Type: Microsoft.UpdateServices.Administration.UpdateEventCollection
An UpdateEventCollection collection of the installation events that were raised by all clients for the specified update and date range.
Exceptions
Exception
Condition
update cannot be null.
fromDate cannot be greater than toDate.
Remarks
Events are removed based on the ServerEventExpirationTime configuration setting.
See Also
GetUpdateEventHistory Overload
IUpdateServer Interface
Microsoft.UpdateServices.Administration Namespace
Return to top