EventLogNotFoundException Constructors

Definition

Initializes a new instance of the EventLogNotFoundException class.

Overloads

EventLogNotFoundException()

Initializes a new instance of the EventLogNotFoundException class.

EventLogNotFoundException(String)

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

EventLogNotFoundException(SerializationInfo, StreamingContext)

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

EventLogNotFoundException(String, Exception)

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

EventLogNotFoundException()

Initializes a new instance of the EventLogNotFoundException class.

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

EventLogNotFoundException(String)

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

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

Parameters

message
String

The error message that describes the current exception.

EventLogNotFoundException(SerializationInfo, StreamingContext)

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

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

Parameters

serializationInfo
SerializationInfo

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

streamingContext
StreamingContext

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

EventLogNotFoundException(String, Exception)

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

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

Parameters

message
String

The error message that describes the current exception.

innerException
Exception

The Exception instance that caused the current exception.

Applies to