EventSourceException Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy EventSourceException.

Przeciążenia

Nazwa Opis
EventSourceException()

Inicjuje nowe wystąpienie klasy EventSourceException.

EventSourceException(String)

Inicjuje nowe wystąpienie klasy EventSourceException z określonym komunikatem o błędzie.

EventSourceException(SerializationInfo, StreamingContext)
Przestarzałe.

Inicjuje EventSourceException nowe wystąpienie klasy z serializowanymi danymi.

EventSourceException(String, Exception)

Inicjuje nowe wystąpienie EventSourceException klasy z określonym komunikatem o błędzie i odwołaniem do wyjątku wewnętrznego, który jest przyczyną tego wyjątku.

EventSourceException()

Źródło:
EventSourceException.cs
Źródło:
EventSourceException.cs
Źródło:
EventSourceException.cs
Źródło:
EventSourceException.cs
Źródło:
EventSourceException.cs

Inicjuje nowe wystąpienie klasy EventSourceException.

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

Dotyczy

EventSourceException(String)

Źródło:
EventSourceException.cs
Źródło:
EventSourceException.cs
Źródło:
EventSourceException.cs
Źródło:
EventSourceException.cs
Źródło:
EventSourceException.cs

Inicjuje nowe wystąpienie klasy EventSourceException z określonym komunikatem o błędzie.

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

Parametry

message
String

Komunikat opisujący błąd.

Dotyczy

EventSourceException(SerializationInfo, StreamingContext)

Źródło:
EventSourceException.cs
Źródło:
EventSourceException.cs
Źródło:
EventSourceException.cs
Źródło:
EventSourceException.cs
Źródło:
EventSourceException.cs

Uwaga

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

Inicjuje EventSourceException nowe wystąpienie klasy z serializowanymi danymi.

protected:
 EventSourceException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[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 EventSourceException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected EventSourceException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[<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.Tracing.EventSourceException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Diagnostics.Tracing.EventSourceException
new System.Diagnostics.Tracing.EventSourceException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Diagnostics.Tracing.EventSourceException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parametry

info
SerializationInfo

Obiekt, który przechowuje serializowane dane obiektu.

context
StreamingContext

Kontekstowe informacje o źródle lub miejscu docelowym.

Atrybuty

Dotyczy

EventSourceException(String, Exception)

Źródło:
EventSourceException.cs
Źródło:
EventSourceException.cs
Źródło:
EventSourceException.cs
Źródło:
EventSourceException.cs
Źródło:
EventSourceException.cs

Inicjuje nowe wystąpienie EventSourceException klasy z określonym komunikatem o błędzie i odwołaniem do wyjątku wewnętrznego, który jest przyczyną tego wyjątku.

public:
 EventSourceException(System::String ^ message, Exception ^ innerException);
public EventSourceException(string message, Exception innerException);
public EventSourceException(string? message, Exception? innerException);
new System.Diagnostics.Tracing.EventSourceException : string * Exception -> System.Diagnostics.Tracing.EventSourceException
Public Sub New (message As String, innerException As Exception)

Parametry

message
String

Komunikat o błędzie wyjaśniający przyczynę wyjątku.

innerException
Exception

Wyjątek, który jest przyczyną bieżącego wyjątku lub null jeśli nie określono wyjątku wewnętrznego.

Uwagi

Wyjątek zgłaszany bezpośrednio w wyniku poprzedniego wyjątku powinien zawierać odwołanie do poprzedniego wyjątku we właściwości InnerException. Właściwość InnerException zwraca tę samą wartość, która jest przekazywana do konstruktora, lub null, jeśli właściwość InnerException nie dostarcza wartości wyjątku wewnętrznego do konstruktora.

Dotyczy