About EventLog.SourceExist

  • Thread starter Thread starter TonyJ
  • Start date Start date
T

TonyJ

Hello!

I just wonder what does it mean when this statement return true
EventLog.SourceExists("MySource")

I have read in .NET framework but doesn't quite understand what they mean.
They say return true if the given event source(here MySource) exist in the
computer's registry.

What is a event Source?

It's not the same as ServiceName?

//Tony
 
Tony,

This is not related to the registry. It simply returns true if your
event source is registered with the system (the comments about the registry
are there to indicate that you need permission to access the registry, as
that is where the event log sources are currently located).
 

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