What is the CreateEventSource method?

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

What is the CreateEventSource method?

Rating:

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:

  1. 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.


  2. 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.


Rating:



Other articles

Click here to Article home

 
uCertify.com | Our Company | Articles | Privacy | Security | Contact Us | News and Press Release | uCertify India
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.