The EventLog Class contains the following constructors:
EventLog(String source)
EventLog(String server, String source)
Creates an EventLog object given the name of the source. This constructor calls the Win32 RegisterEventSource API.
public EventLog(String source);
source | The name of the source referenced by the EventLog object. The source name must be a subkey of a logfile entry under the EventLog key in the registry. Its value can be null. |
Creates an EventLog object given the name of the source and the name of the server. This constructor calls the Win32 RegisterEventSource API.
public EventLog(String server, String source);
server | The Universal Naming Convention (UNC) name of the server that this operation is to be performed on. |
source | The name of the source referenced by the EventLog object. The source name must be a subkey of a logfile entry under the Eventlog key in the registry. Its value can be null. |