Edit

Share via


EventLogReadingException Constructors

Definition

Initializes a new instance of the EventLogReadingException class.

Overloads

EventLogReadingException()

Initializes a new instance of the EventLogReadingException class.

EventLogReadingException(String)

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

EventLogReadingException(SerializationInfo, StreamingContext)
Obsolete.

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

EventLogReadingException(String, Exception)

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

EventLogReadingException()

Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs

Initializes a new instance of the EventLogReadingException class.

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

See also

Applies to

EventLogReadingException(String)

Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs

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

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

Parameters

message
String

The error message that describes the current exception.

See also

Applies to

EventLogReadingException(SerializationInfo, StreamingContext)

Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs

Caution

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

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

protected:
 EventLogReadingException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected EventLogReadingException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected EventLogReadingException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new System.Diagnostics.Eventing.Reader.EventLogReadingException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Diagnostics.Eventing.Reader.EventLogReadingException
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Diagnostics.Eventing.Reader.EventLogReadingException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Diagnostics.Eventing.Reader.EventLogReadingException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

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.

Attributes

See also

Applies to

EventLogReadingException(String, Exception)

Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs

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

public:
 EventLogReadingException(System::String ^ message, Exception ^ innerException);
public EventLogReadingException (string message, Exception innerException);
new System.Diagnostics.Eventing.Reader.EventLogReadingException : string * Exception -> System.Diagnostics.Eventing.Reader.EventLogReadingException
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.

See also

Applies to