EventLog.CreateEventSource Method

Establishes an application as able to write event information to a particular log on the system.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Static member CreateEventSource(EventSourceCreationData) Establishes a valid event source for writing localized event messages, using the specified configuration properties for the event source and the corresponding event log.
Public method Static member CreateEventSource(String, String) Establishes the specified source name as a valid event source for writing entries to a log on the local computer. This method can also create a new custom log on the local computer.
Public method Static member CreateEventSource(String, String, String) Obsolete. Establishes the specified source name as a valid event source for writing entries to a log on the specified computer. This method can also be used to create a new custom log on the specified computer.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft