EventLogException Constructeurs

Définition

Initialise une nouvelle instance de la classe EventLogException.

Surcharges

Nom Description
EventLogException()

Initialise une nouvelle instance de la classe EventLogException.

EventLogException(Int32)

Initialise une nouvelle instance de la EventLogException classe avec le code d’erreur de l’exception.

EventLogException(String)

Initialise une nouvelle instance de la EventLogException classe en spécifiant le message d’erreur qui décrit l’exception actuelle.

EventLogException(SerializationInfo, StreamingContext)
Obsolète.

Initialise une nouvelle instance de la classe EventLogException avec des données sérialisées.

EventLogException(String, Exception)

Initialise une nouvelle instance de la EventLogException classe avec un message d’erreur et une exception interne.

EventLogException()

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

Initialise une nouvelle instance de la classe EventLogException.

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

S’applique à

EventLogException(Int32)

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

Initialise une nouvelle instance de la EventLogException classe avec le code d’erreur de l’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)

Paramètres

errorCode
Int32

Code d’erreur de l’erreur qui s’est produite lors de la lecture ou de la configuration des informations associées au journal des événements.

S’applique à

EventLogException(String)

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

Initialise une nouvelle instance de la EventLogException classe en spécifiant le message d’erreur qui décrit l’exception actuelle.

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)

Paramètres

message
String

Message d’erreur qui décrit l’exception actuelle.

S’applique à

EventLogException(SerializationInfo, StreamingContext)

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

Attention

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

Initialise une nouvelle instance de la classe EventLogException avec des données sérialisées.

protected:
 EventLogException(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 EventLogException(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
protected EventLogException(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.EventLogException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Diagnostics.Eventing.Reader.EventLogException
new System.Diagnostics.Eventing.Reader.EventLogException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Diagnostics.Eventing.Reader.EventLogException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

Paramètres

serializationInfo
SerializationInfo

Objet SerializationInfo qui contient les données d’objet sérialisées sur l’exception levée.

streamingContext
StreamingContext

Objet StreamingContext qui contient des informations contextuelles sur la source ou la destination.

Attributs

S’applique à

EventLogException(String, Exception)

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

Initialise une nouvelle instance de la EventLogException classe avec un message d’erreur et une exception interne.

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)

Paramètres

message
String

Message d’erreur qui décrit l’exception actuelle.

innerException
Exception

Instance d’exception qui a provoqué l’exception actuelle.

S’applique à