BizTalk Utilities CV ,   Jobs ,   Code library
 
Home Page


Add/Edit your code items
Search the code library
Browse for the code library


LAMP
What is the CreateEventSource method?


 
 

<< JavaScriptMicrosoft ASP >>


By Roger Stuart
First Posted 05/24/2007
Times viewed 379

What is the CreateEventSource method?


Summary The CreateEventSource method of the EventLog class establishes an application as a valid event source for writing event information to a particular event log on a computer.

The event log used to write entries can be the event log available by default on a computer or a custom event log. This method can also be used to create a custom event log on a computer. The EventLog class defines two overloaded versions of the method. Their signatures are as follows: Overloads Public Shared Sub CreateEventSource(String, String) This overloaded version of the method accepts two string parameters. The first string parameter represents the source name by which the application is registered on the local computer. The second string parameter is the name of the log that will be used for writing event information. If the log specified by the second string parameter does not exist, a custom log is created on the computer. Overloads Public Shared Sub CreateEventSource(String, String, String) This overloaded version of the method accepts three string parameters. The first string parameter represents the source name by which the application is registered on the specified computer. The second string parameter is the name of the log that will be used for writing event information. The third string parameter is the name of the computer. If the log specified by the second string parameter does not exist on the specified computer, a custom log is created on the computer. About the Author: uCertify was formed in 1996 with an aim to offer high quality educational training software and services in the field of information technology to its customers. uCertify provides exam preparation solutions for the certification exams of Microsoft, CIW, CompTIA, Oracle, Sun and other leading IT vendors. To know more about uCertify, please visit http://www.ucertify.com/

<< JavaScriptMicrosoft ASP >>





Leave a comment for this article
Your name
Your email (optional)
Your comment
Optional: Upload an attachment
Enter the code shown:

 
 

    Email TopXML