Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

EventLog Methods

(see also Protected Methods )
  Name Description
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 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 Delete Overloaded. Removes a log resource.
Public method Static 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  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
Public method Static Exists Overloaded. Determines whether the specified log exists.
Public method Static GetEventLogs Overloaded. Creates an array of the event logs.
Public method GetHashCode  Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)
Public method GetLifetimeService  Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
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 LogNameFromSourceName Gets the name of the log to which the specified source is registered.
Public method ModifyOverflowPolicy Changes the configured behavior for writing new entries when the event log reaches its maximum file size.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method RegisterDisplayName Specifies the localized name of the event log, which is displayed in the server Event Viewer.
Public method Static 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 WriteEntry Overloaded. Writes an entry in the event log.
Public method WriteEvent Overloaded. Writes a localized event entry to the event log.
Top

  Name Description
Protected method Dispose Overloaded. Overridden. Releases the resources used by the EventLog.
Protected method Finalize  Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Protected method GetService  Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Protected method MemberwiseClone  Overloaded. (Inherited from MarshalByRefObject.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft