This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
EventLog Members
Public:
Constructor
Properties
Entries |
Gets the contents of the event log. |
Log |
Gets or sets the name of the log to read from and write to. |
MachineName |
Gets or sets the name of the computer on which to read or write events. |
Monitoring |
[To be supplied.] |
Site (inherited from Component) |
Gets or sets the site of the Component. |
Source |
Gets or sets the application name (source name) to register and use when writing to the event log. |
SynchronizingObject |
Represents the object used to marshal the event handler calls issued as a result of an EventLog change. |
Methods
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. |
Events
EntryWritten |
Occurs when an entry is written to the event log. |
Protected:
Methods
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:
Methods
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