IUpdate.GetUpdateEventHistory(DateTime, DateTime)
Retrieves the event history that is associated with this update.
public UpdateEventCollection GetUpdateEventHistory(DateTimefromDate,
DateTimetoDate);
Public Function GetUpdateEventHistory( _
ByVal fromDate As DateTime, _
ByVal toDate As DateTime _
) As UpdateEventCollection
Implements IUpdate.GetUpdateEventHistory
Parameters
- fromDate
Begin date that is used to search for events that are associated with this update. Specify the date in Coordinated Universal Time. - toDate
End date that is used to search for events that are associated with this update. Specify the date in Coordinated Universal Time.
Return Value
An UpdateEventCollection collection that contains the event history of this update for the specified date range.
Exceptions
Exception type | Condition |
---|---|
System.ArgumentOutOfRangeException | fromDate cannot be greater than toDate. |
Remarks
Events are removed based on the IUpdateServerConfiguration.ServerEventExpirationTime configuration setting. You can also call IUpdate.PurgeAssociatedReportingEvents to remove events.
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. |
See Also
IUpdateServer.GetUpdateEventHistory(DateTime, DateTime, IUpdate)