NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

EventLog Methods

The methods of the EventLog class are listed below. For a complete list of EventLog class members, see the EventLog Members topic.

Public:

BeginInit [To be supplied.]
Clear Clears the event log by removing all entries from it.
Close Closes the event log and releases read and write handles.
CreateEventSource Overloaded. Establishes an application as an event source.
Delete Overloaded. Removes a log resource.
DeleteEventSource Overloaded. Removes an application's event source registration from the event log.
Dispose Frees all resources held by the EventLog.
EndInit [To be supplied.]
Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
Exists Overloaded. Determines whether the specified log exists.
GetContainer (inherited from Component) Returns the IContainer that contains the Component.
GetDesignMode (inherited from Component) Gets a value indicating whether the Component is currently in design mode.
GetEventLogs Overloaded. Creates an array of the event logs.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetServiceObject (inherited from Component) Returns an object representing a service provided by the Component.
GetType (inherited from Object) Gets the Type of the Object.
SourceExists Overloaded. Searches a computer's registry for a given event source.
StartMonitoring [To be supplied.]
StopMonitoring [To be supplied.]
ToString (inherited from Component) Returns a String containing the name of the Component, if any. This method should not be overridden. For internal use only.
WriteEntry Overloaded. Logs an entry in the event log.

Protected:

Finalize Called when the object is about to be reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

Event Hookup:

AddOnEntryWritten Adds an event handler for the System.Diagnostics.EventLog.EntryWritten event.
RemoveOnEntryWritten Deregisters an event handler from monitoring for the arrival of events.

See Also

EventLog Class | System.Diagnostics Namespace