Export (0) Print
Expand All

EventLog Methods

The EventLog type exposes the following members.

  NameDescription
Public method BeginInit Begins the initialization of an EventLog used on a form or used by another component. The initialization occurs at runtime.
Public method Clear Removes all entries from the event log.
Public method Close Closes the event log and releases read and write handles.
Public method Static member CreateEventSource Overloaded. Establishes an application as able to write event information to a particular log on the system.
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Static member Delete Overloaded. Removes a log resource.
Public method Static member DeleteEventSource Overloaded. Removes an application's event source registration from the event log.
Public method Dispose Overloaded. Releases the resources used by the EventLog.
Public method EndInit Ends the initialization of an EventLog used on a form or by another component. The initialization occurs at runtime.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method Static member Exists Overloaded. Determines whether the specified log exists.
Protected method Finalize Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public method Static member GetEventLogs Overloaded. Creates an array of the event logs.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method GetService Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method Static member LogNameFromSourceName Gets the name of the log to which the specified source is registered.
Protected method MemberwiseClone Overloaded.
Public method ModifyOverflowPolicy Changes the configured behavior for writing new entries when the event log reaches its maximum file size.
Public method RegisterDisplayName Specifies the localized name of the event log, which is displayed in the server Event Viewer.
Public method Static member SourceExists Overloaded. Searches a computer's registry for a given event source.
Public method ToString Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.)
Public method Static member WriteEntry Overloaded. Writes an entry in the event log.
Public method Static member WriteEvent Overloaded. Writes a localized event entry to the event log.
Top

Community Additions

ADD
Show:
© 2014 Microsoft