EventlLog - How to Query all the different logs

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there an object that I can query that will return to me the different logs
in the EventLog? I know by default there exist a System, Security and
Application Eventl log.

But, I'd like to bind all the different logs dynamically to a dropDownList
control.

Just not sure which object to use.

I looked at Object EventLog but it did not have a method or property to
return the different logs within the Eventlog.



Thanks

Tom

PS I looked at
 
Tom said:
Is there an object that I can query that will return to me the different
logs
in the EventLog? I know by default there exist a System, Security and
Application Eventl log.

Hi. You can pull the list from the Registry at:

HKLM\SYSTEM\ControlSet001\Services\Eventlog

-- Alan
 
Alan:

Thanks I can do that but do you know why the object model doesn't supply a
method or property?

Thanks

Tom
 
Tom said:
Alan:

Thanks I can do that but do you know why the object model doesn't supply a
method or property?

Thanks

Tom

There is...

EventLog.GetEventLogs();

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top