EventLog Methods

EventLog Methods

 

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

NameDescription
System_CAPS_pubmethodBeginInit()

Begins the initialization of an EventLog used on a form or used by another component. The initialization occurs at runtime.

System_CAPS_pubmethodClear()

Removes all entries from the event log.

System_CAPS_pubmethodClose()

Closes the event log and releases read and write handles.

System_CAPS_pubmethodSystem_CAPS_staticCreateEventSource(EventSourceCreationData)

Establishes a valid event source for writing localized event messages, using the specified configuration properties for the event source and the corresponding event log.

System_CAPS_pubmethodSystem_CAPS_staticCreateEventSource(String, String)

Establishes the specified source name as a valid event source for writing entries to a log on the local computer. This method can also create a new custom log on the local computer.

System_CAPS_pubmethodSystem_CAPS_staticCreateEventSource(String, String, String)

Obsolete.Establishes the specified source name as a valid event source for writing entries to a log on the specified computer. This method can also be used to create a new custom log on the specified computer.

System_CAPS_pubmethodCreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodSystem_CAPS_staticDelete(String)

Removes an event log from the local computer.

System_CAPS_pubmethodSystem_CAPS_staticDelete(String, String)

Removes an event log from the specified computer.

System_CAPS_pubmethodSystem_CAPS_staticDeleteEventSource(String)

Removes the event source registration from the event log of the local computer.

System_CAPS_pubmethodSystem_CAPS_staticDeleteEventSource(String, String)

Removes the application's event source registration from the specified computer.

System_CAPS_pubmethodDispose()

Releases all resources used by the Component.(Inherited from Component.)

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the EventLog, and optionally releases the managed resources. (Overrides Component.Dispose(Boolean).)

System_CAPS_pubmethodEndInit()

Ends the initialization of an EventLog used on a form or by another component. The initialization occurs at runtime.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticExists(String)

Determines whether the log exists on the local computer.

System_CAPS_pubmethodSystem_CAPS_staticExists(String, String)

Determines whether the log exists on the specified computer.

System_CAPS_protmethodFinalize()

Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.(Inherited from Component.)

System_CAPS_pubmethodSystem_CAPS_staticGetEventLogs()

Searches for all event logs on the local computer and creates an array of EventLog objects that contain the list.

System_CAPS_pubmethodSystem_CAPS_staticGetEventLogs(String)

Searches for all event logs on the given computer and creates an array of EventLog objects that contain the list.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_protmethodGetService(Type)

Returns an object that represents a service provided by the Component or by its Container.(Inherited from Component.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodSystem_CAPS_staticLogNameFromSourceName(String, String)

Gets the name of the log to which the specified source is registered.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodModifyOverflowPolicy(OverflowAction, Int32)

Changes the configured behavior for writing new entries when the event log reaches its maximum file size.

System_CAPS_pubmethodRegisterDisplayName(String, Int64)

Specifies the localized name of the event log, which is displayed in the server Event Viewer.

System_CAPS_pubmethodSystem_CAPS_staticSourceExists(String)

Determines whether an event source is registered on the local computer.

System_CAPS_pubmethodSystem_CAPS_staticSourceExists(String, String)

Determines whether an event source is registered on a specified computer.

System_CAPS_pubmethodToString()

Returns a String containing the name of the Component, if any. This method should not be overridden.(Inherited from Component.)

System_CAPS_pubmethodWriteEntry(String)

Writes an information type entry, with the given message text, to the event log.

System_CAPS_pubmethodWriteEntry(String, EventLogEntryType)

Writes an error, warning, information, success audit, or failure audit entry with the given message text to the event log.

System_CAPS_pubmethodWriteEntry(String, EventLogEntryType, Int32)

Writes an entry with the given message text and application-defined event identifier to the event log.

System_CAPS_pubmethodWriteEntry(String, EventLogEntryType, Int32, Int16)

Writes an entry with the given message text, application-defined event identifier, and application-defined category to the event log.

System_CAPS_pubmethodWriteEntry(String, EventLogEntryType, Int32, Int16, Byte[])

Writes an entry with the given message text, application-defined event identifier, and application-defined category to the event log, and appends binary data to the message.

System_CAPS_pubmethodSystem_CAPS_staticWriteEntry(String, String)

Writes an information type entry with the given message text to the event log, using the specified registered event source.

System_CAPS_pubmethodSystem_CAPS_staticWriteEntry(String, String, EventLogEntryType)

Writes an error, warning, information, success audit, or failure audit entry with the given message text to the event log, using the specified registered event source.

System_CAPS_pubmethodSystem_CAPS_staticWriteEntry(String, String, EventLogEntryType, Int32)

Writes an entry with the given message text and application-defined event identifier to the event log, using the specified registered event source.

System_CAPS_pubmethodSystem_CAPS_staticWriteEntry(String, String, EventLogEntryType, Int32, Int16)

Writes an entry with the given message text, application-defined event identifier, and application-defined category to the event log, using the specified registered event source. The category can be used by the Event Viewer to filter events in the log.

System_CAPS_pubmethodSystem_CAPS_staticWriteEntry(String, String, EventLogEntryType, Int32, Int16, Byte[])

Writes an entry with the given message text, application-defined event identifier, and application-defined category to the event log (using the specified registered event source) and appends binary data to the message.

System_CAPS_pubmethodWriteEvent(EventInstance, Byte[], Object[])

Writes an event log entry with the given event data, message replacement strings, and associated binary data.

System_CAPS_pubmethodWriteEvent(EventInstance, Object[])

Writes a localized entry to the event log.

System_CAPS_pubmethodSystem_CAPS_staticWriteEvent(String, EventInstance, Byte[], Object[])

Writes an event log entry with the given event data, message replacement strings, and associated binary data, and using the specified registered event source.

System_CAPS_pubmethodSystem_CAPS_staticWriteEvent(String, EventInstance, Object[])

Writes an event log entry with the given event data and message replacement strings, using the specified registered event source.

Return to top
Show:
© 2016 Microsoft