EventLogNotFoundException Konstruktorer

Definition

Initierar en ny instans av EventLogNotFoundException klassen.

Överlagringar

Name Description
EventLogNotFoundException()

Initierar en ny instans av EventLogNotFoundException klassen.

EventLogNotFoundException(String)

Initierar en ny instans av EventLogNotFoundException klassen genom att ange det felmeddelande som beskriver det aktuella undantaget.

EventLogNotFoundException(SerializationInfo, StreamingContext)
Föråldrad.

Initierar en ny instans av EventLogNotFoundException klassen med serialiserade data.

EventLogNotFoundException(String, Exception)

Initierar en ny instans av EventLogNotFoundException klassen med ett felmeddelande och ett inre undantag.

EventLogNotFoundException()

Källa:
EventLogException.cs
Källa:
EventLogException.cs
Källa:
EventLogException.cs
Källa:
EventLogException.cs
Källa:
EventLogException.cs
Källa:
EventLogException.cs
Källa:
EventLogException.cs
Källa:
EventLogException.cs

Initierar en ny instans av EventLogNotFoundException klassen.

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

Gäller för

EventLogNotFoundException(String)

Källa:
EventLogException.cs
Källa:
EventLogException.cs
Källa:
EventLogException.cs
Källa:
EventLogException.cs
Källa:
EventLogException.cs
Källa:
EventLogException.cs
Källa:
EventLogException.cs
Källa:
EventLogException.cs

Initierar en ny instans av EventLogNotFoundException klassen genom att ange det felmeddelande som beskriver det aktuella undantaget.

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

Parametrar

message
String

Felmeddelandet som beskriver det aktuella undantaget.

Gäller för

EventLogNotFoundException(SerializationInfo, StreamingContext)

Källa:
EventLogException.cs
Källa:
EventLogException.cs
Källa:
EventLogException.cs
Källa:
EventLogException.cs
Källa:
EventLogException.cs
Källa:
EventLogException.cs
Källa:
EventLogException.cs
Källa:
EventLogException.cs

Varning

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

Initierar en ny instans av EventLogNotFoundException klassen med serialiserade 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);
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}")>]
new System.Diagnostics.Eventing.Reader.EventLogNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Diagnostics.Eventing.Reader.EventLogNotFoundException
new System.Diagnostics.Eventing.Reader.EventLogNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Diagnostics.Eventing.Reader.EventLogNotFoundException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

Parametrar

serializationInfo
SerializationInfo

Objektet SerializationInfo som innehåller serialiserade objektdata om undantaget som genereras.

streamingContext
StreamingContext

Objektet StreamingContext som innehåller kontextuell information om källan eller målet.

Attribut

Gäller för

EventLogNotFoundException(String, Exception)

Källa:
EventLogException.cs
Källa:
EventLogException.cs
Källa:
EventLogException.cs
Källa:
EventLogException.cs
Källa:
EventLogException.cs
Källa:
EventLogException.cs
Källa:
EventLogException.cs
Källa:
EventLogException.cs

Initierar en ny instans av EventLogNotFoundException klassen med ett felmeddelande och ett inre undantag.

public:
 EventLogNotFoundException(System::String ^ message, Exception ^ innerException);
public EventLogNotFoundException(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)

Parametrar

message
String

Felmeddelandet som beskriver det aktuella undantaget.

innerException
Exception

Undantagsinstansen som orsakade det aktuella undantaget.

Gäller för