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