IUpdateServer.GetUpdateEventHistory(DateTime, DateTime, System.Guid, WsusEventSource, WsusEventId[])
Retrieves events based on the specified criteria.
public UpdateEventCollection GetUpdateEventHistory(
DateTime fromDate,
DateTime toDate,
System.Guid update,
WsusEventSource eventSource,
WsusEventId[] eventIds
);
Public Function GetUpdateEventHistory( _
ByVal fromDate As DateTime, _
ByVal toDate As DateTime, _
ByVal update As System.Guid, _
ByVal eventSource As WsusEventSource, _
ByVal eventIds() As WsusEventId _
) As UpdateEventCollection
Implements IUpdateServer.GetUpdateEventHistory
Parameters
- fromDate
Begin date that is used to search for events. Specify the date in Coordinated Universal Time. - toDate
End date that is used to search for events. Specify the date in Coordinated Universal Time. - update
Identifier of the update whose installation history you want to retrieve. - eventSource
Indicates if you want to retrieve events that were raised by clients or servers. - eventIds
Array of events to retrieve. You can specify 0 or more identifiers as parameters, or an array. If you specify a null or a value of 0, the method returns all events for the specified source.
Return Values
An UpdateEventCollection collection of events that were raised that match the specified criteria. The collection is empty if no events match the criteria.
Exceptions
Exception type | Condition |
---|---|
System.ArgumentNullException | update cannot be null. |
System.ArgumentOutOfRangeException | fromDate cannot be greater than toDate. |
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. |