AggregateException Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy AggregateException.

Przeciążenia

AggregateException()

Inicjuje AggregateException nowe wystąpienie klasy z komunikatem dostarczonym przez system, który opisuje błąd.

AggregateException(IEnumerable<Exception>)

Inicjuje nowe wystąpienie AggregateException klasy z odwołaniami do wyjątków wewnętrznych, które są przyczyną tego wyjątku.

AggregateException(Exception[])

Inicjuje nowe wystąpienie AggregateException klasy z odwołaniami do wyjątków wewnętrznych, które są przyczyną tego wyjątku.

AggregateException(String)

Inicjuje AggregateException nowe wystąpienie klasy z określonym komunikatem opisujący błąd.

AggregateException(SerializationInfo, StreamingContext)
Przestarzałe.

Inicjuje nowe wystąpienie klasy AggregateException z zserializowanymi danymi.

AggregateException(String, IEnumerable<Exception>)

Inicjuje nowe wystąpienie AggregateException klasy z określonym komunikatem o błędzie i odwołuje się do wewnętrznych wyjątków, które są przyczyną tego wyjątku.

AggregateException(String, Exception)

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

AggregateException(String, Exception[])

Inicjuje nowe wystąpienie AggregateException klasy z określonym komunikatem o błędzie i odwołuje się do wewnętrznych wyjątków, które są przyczyną tego wyjątku.

AggregateException()

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

Inicjuje AggregateException nowe wystąpienie klasy z komunikatem dostarczonym przez system, który opisuje błąd.

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

Uwagi

Ten konstruktor inicjuje Message właściwość nowego wystąpienia do komunikatu dostarczonego przez system, który opisuje błąd, taki jak "System.AggregateException: wystąpił co najmniej jeden błąd". Ten komunikat uwzględnia bieżącą kulturę systemu.

Poniższa tabela prezentuje początkowe wartości właściwości dla wystąpienia klasy AggregateException.

Właściwość Wartość
InnerException null.
Message Zlokalizowany ciąg z komunikatem o błędzie.

Zobacz też

Dotyczy

AggregateException(IEnumerable<Exception>)

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

Inicjuje nowe wystąpienie AggregateException klasy z odwołaniami do wyjątków wewnętrznych, które są przyczyną tego wyjątku.

public:
 AggregateException(System::Collections::Generic::IEnumerable<Exception ^> ^ innerExceptions);
public AggregateException (System.Collections.Generic.IEnumerable<Exception> innerExceptions);
new AggregateException : seq<Exception> -> AggregateException
Public Sub New (innerExceptions As IEnumerable(Of Exception))

Parametry

innerExceptions
IEnumerable<Exception>

Wyjątki będące przyczyną bieżącego wyjątku.

Wyjątki

Argument innerExceptions ma wartość null.

Element elementu innerExceptions ma wartość null.

Dotyczy

AggregateException(Exception[])

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

Inicjuje nowe wystąpienie AggregateException klasy z odwołaniami do wyjątków wewnętrznych, które są przyczyną tego wyjątku.

public:
 AggregateException(... cli::array <Exception ^> ^ innerExceptions);
public AggregateException (params Exception[] innerExceptions);
new AggregateException : Exception[] -> AggregateException
Public Sub New (ParamArray innerExceptions As Exception())

Parametry

innerExceptions
Exception[]

Wyjątki będące przyczyną bieżącego wyjątku.

Wyjątki

Argument innerExceptions ma wartość null.

Element elementu innerExceptions ma wartość null.

Dotyczy

AggregateException(String)

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

Inicjuje AggregateException nowe wystąpienie klasy z określonym komunikatem opisujący błąd.

public:
 AggregateException(System::String ^ message);
public AggregateException (string message);
public AggregateException (string? message);
new AggregateException : string -> AggregateException
Public Sub New (message As String)

Parametry

message
String

Komunikat opisujący wyjątek. Obiekt wywołujący tego konstruktora jest wymagany w celu zagwarantowania, że ten ciąg został zlokalizowany w bieżącej kulturze systemu.

Uwagi

Poniższa tabela prezentuje początkowe wartości właściwości dla wystąpienia klasy AggregateException.

Właściwość Wartość
InnerException null.
Message Ciąg z komunikatem o błędzie określony w parametrze message.

Zobacz też

Dotyczy

AggregateException(SerializationInfo, StreamingContext)

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

Przestroga

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

Inicjuje nowe wystąpienie klasy AggregateException z zserializowanymi danymi.

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

Parametry

info
SerializationInfo

Obiekt zawierający dane serializowanego obiektu.

context
StreamingContext

Informacje kontekstowe dotyczące źródła lub miejsca docelowego.

Atrybuty

Wyjątki

Argument info ma wartość null.

Nie można poprawnie zdeserializować wyjątku.

Uwagi

Ten konstruktor jest wywoływana podczas deserializacji do odtworzenia obiektu wyjątku przesyłanego za pomocą strumienia. Aby uzyskać więcej informacji, zobacz Serializacja XML i SOAP.

Zobacz też

Dotyczy

AggregateException(String, IEnumerable<Exception>)

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

Inicjuje nowe wystąpienie AggregateException klasy z określonym komunikatem o błędzie i odwołuje się do wewnętrznych wyjątków, które są przyczyną tego wyjątku.

public:
 AggregateException(System::String ^ message, System::Collections::Generic::IEnumerable<Exception ^> ^ innerExceptions);
public AggregateException (string message, System.Collections.Generic.IEnumerable<Exception> innerExceptions);
public AggregateException (string? message, System.Collections.Generic.IEnumerable<Exception> innerExceptions);
new AggregateException : string * seq<Exception> -> AggregateException
Public Sub New (message As String, innerExceptions As IEnumerable(Of Exception))

Parametry

message
String

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

innerExceptions
IEnumerable<Exception>

Wyjątki będące przyczyną bieżącego wyjątku.

Wyjątki

Argument innerExceptions ma wartość null.

Element elementu innerExceptions ma wartość null.

Dotyczy

AggregateException(String, Exception)

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

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

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

Parametry

message
String

Komunikat opisujący wyjątek. Obiekt wywołujący tego konstruktora jest wymagany w celu zagwarantowania, że ten ciąg został zlokalizowany w bieżącej kulturze systemu.

innerException
Exception

Wyjątek będący przyczyną bieżącego wyjątku. innerException Jeśli parametr nie nulljest , bieżący wyjątek jest zgłaszany w catch bloku, który obsługuje wyjątek wewnętrzny.

Wyjątki

Argument innerException ma wartość null.

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 została przekazana do konstruktora, lub wartość null, jeśli właściwość InnerException nie przekazuje do konstruktora wartości wyjątku wewnętrznego.

Poniższa tabela prezentuje początkowe wartości właściwości dla wystąpienia klasy AggregateException.

Właściwość Wartość
InnerException null.
Message Ciąg z komunikatem o błędzie określony w parametrze message.

Zobacz też

Dotyczy

AggregateException(String, Exception[])

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

Inicjuje nowe wystąpienie AggregateException klasy z określonym komunikatem o błędzie i odwołuje się do wewnętrznych wyjątków, które są przyczyną tego wyjątku.

public:
 AggregateException(System::String ^ message, ... cli::array <Exception ^> ^ innerExceptions);
public AggregateException (string message, params Exception[] innerExceptions);
public AggregateException (string? message, params Exception[] innerExceptions);
new AggregateException : string * Exception[] -> AggregateException
Public Sub New (message As String, ParamArray innerExceptions As Exception())

Parametry

message
String

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

innerExceptions
Exception[]

Wyjątki będące przyczyną bieżącego wyjątku.

Wyjątki

Argument innerExceptions ma wartość null.

Element elementu innerExceptions ma wartość null.

Dotyczy