Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

EventLog::CreateEventSource Method

 

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

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreateEventSource(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.

System_CAPS_pubmethodSystem_CAPS_staticCreateEventSource(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.

System_CAPS_pubmethodSystem_CAPS_staticCreateEventSource(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.

Return to top
Show:
© 2017 Microsoft