EventLogException EventLogException EventLogException EventLogException Constructors

Definition

Overloads

EventLogException() EventLogException() EventLogException()

Initializes a new instance of the EventLogException class.

EventLogException(Int32) EventLogException(Int32) EventLogException(Int32) EventLogException(Int32)

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

EventLogException(String) EventLogException(String) EventLogException(String) EventLogException(String)

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

EventLogException(SerializationInfo, StreamingContext) EventLogException(SerializationInfo, StreamingContext) EventLogException(SerializationInfo, StreamingContext)

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

EventLogException(String, Exception) EventLogException(String, Exception) EventLogException(String, Exception) EventLogException(String, Exception)

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

EventLogException() EventLogException() EventLogException()

Initializes a new instance of the EventLogException class.

public:
 EventLogException();
public EventLogException ();
Public Sub New ()

EventLogException(Int32) EventLogException(Int32) EventLogException(Int32) EventLogException(Int32)

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

protected:
 EventLogException(int errorCode);
protected EventLogException (int errorCode);
new System.Diagnostics.Eventing.Reader.EventLogException : int -> System.Diagnostics.Eventing.Reader.EventLogException
Protected Sub New (errorCode As Integer)

Parameters

errorCode
Int32 Int32 Int32 Int32

The error code for the error that occurred while reading or configuring event log related information. For more information and a list of event log related error codes, see http://go.microsoft.com/fwlink/?LinkId=82629.

EventLogException(String) EventLogException(String) EventLogException(String) EventLogException(String)

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

public:
 EventLogException(System::String ^ message);
public EventLogException (string message);
new System.Diagnostics.Eventing.Reader.EventLogException : string -> System.Diagnostics.Eventing.Reader.EventLogException
Public Sub New (message As String)

Parameters

message
String String String String

The error message that describes the current exception.

EventLogException(SerializationInfo, StreamingContext) EventLogException(SerializationInfo, StreamingContext) EventLogException(SerializationInfo, StreamingContext)

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

protected:
 EventLogException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected EventLogException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new System.Diagnostics.Eventing.Reader.EventLogException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Diagnostics.Eventing.Reader.EventLogException

Parameters

serializationInfo
SerializationInfo SerializationInfo SerializationInfo SerializationInfo

The SerializationInfo object that holds the serialized object data about the exception being thrown.

streamingContext
StreamingContext StreamingContext StreamingContext StreamingContext

The StreamingContext object that contains contextual information about the source or destination.

EventLogException(String, Exception) EventLogException(String, Exception) EventLogException(String, Exception) EventLogException(String, Exception)

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

public:
 EventLogException(System::String ^ message, Exception ^ innerException);
public EventLogException (string message, Exception innerException);
new System.Diagnostics.Eventing.Reader.EventLogException : string * Exception -> System.Diagnostics.Eventing.Reader.EventLogException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String String String String

The error message that describes the current exception.

innerException
Exception Exception Exception Exception

The Exception instance that caused the current exception.

Applies to