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)
Obsolete.

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()

Source:
EventLogException.cs
Source:
EventLogException.cs

Initializes a new instance of the EventLogNotFoundException class.

public EventLogNotFoundException ();

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

EventLogNotFoundException(String)

Source:
EventLogException.cs
Source:
EventLogException.cs

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

public EventLogNotFoundException (string message);

Parameters

message
String

The error message that describes the current exception.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

EventLogNotFoundException(SerializationInfo, StreamingContext)

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 EventLogNotFoundException class with serialized data.

protected EventLogNotFoundException (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 EventLogNotFoundException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext 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

Applies to

.NET 9 (package-provided) and other versions
Product Versions (Obsolete)
.NET 6 (package-provided), 7 (package-provided) (8 (package-provided), 9 (package-provided))
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7 (8, 9)

EventLogNotFoundException(String, Exception)

Source:
EventLogException.cs
Source:
EventLogException.cs

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

public EventLogNotFoundException (string message, Exception innerException);

Parameters

message
String

The error message that describes the current exception.

innerException
Exception

The Exception instance that caused the current exception.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9