Rediger

EventLogException Class

Definition

Represents the base class for all the exceptions that are thrown when an error occurs while reading event log related information.

public ref class EventLogException : Exception
public class EventLogException : Exception
type EventLogException = class
    inherit Exception
Public Class EventLogException
Inherits Exception
Inheritance
EventLogException
Derived

Constructors

Name Description
EventLogException()

Initializes a new instance of the EventLogException class.

EventLogException(Int32)

Initializes a new instance of the EventLogException class with the error code for the exception.

EventLogException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the EventLogException class with serialized data.

EventLogException(String, Exception)

Initializes a new instance of the EventLogException class with an error message and inner exception.

EventLogException(String)

Initializes a new instance of the EventLogException class by specifying the error message that describes the current exception.

Properties

Name Description
Message

Gets the error message that describes the current exception.

Methods

Name Description
GetObjectData(SerializationInfo, StreamingContext)
Obsolete.

Sets the SerializationInfo object with information about the exception.

Applies to