EventLog.GetEventLogs Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates an array of the event logs.

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticGetEventLogs()

Searches for all event logs on the local computer and creates an array of EventLog objects that contain the list.

System_CAPS_pubmethodSystem_CAPS_staticGetEventLogs(String)

Searches for all event logs on the given computer and creates an array of EventLog objects that contain the list.

Return to top
Show: