Udostępnij za pośrednictwem


AggregateException Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy AggregateException.

Przeciążenia

Nazwa Opis
AggregateException()

Inicjuje nowe wystąpienie klasy AggregateException 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 nowe wystąpienie klasy AggregateException z określonym komunikatem opisujący błąd.

AggregateException(SerializationInfo, StreamingContext)
Przestarzałe.

Inicjuje AggregateException nowe wystąpienie klasy z serializowanymi danymi.

AggregateException(String, IEnumerable<Exception>)

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

AggregateException()

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

Inicjuje nowe wystąpienie klasy AggregateException 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.

W poniższej tabeli przedstawiono początkowe wartości właściwości dla wystąpienia AggregateExceptionklasy .

Majątek Wartość
InnerException null.
Message Zlokalizowany ciąg komunikatu o błędzie.

Zobacz też

Dotyczy

AggregateException(IEnumerable<Exception>)

Źródło:
AggregateException.cs
Źródło:
AggregateException.cs
Ź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, które są 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
Ź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, które są 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
Źródło:
AggregateException.cs
Źródło:
AggregateException.cs

Inicjuje nowe wystąpienie klasy AggregateException 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, aby upewnić się, że ten ciąg został zlokalizowany dla bieżącej kultury systemu.

Uwagi

W poniższej tabeli przedstawiono początkowe wartości właściwości dla wystąpienia AggregateExceptionklasy .

Majątek Wartość
InnerException null.
Message Ciąg komunikatu o błędzie określony w pliku message.

Zobacz też

Dotyczy

AggregateException(SerializationInfo, StreamingContext)

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

Uwaga

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

Inicjuje AggregateException nowe wystąpienie klasy z serializowanymi danymi.

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);
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);
[<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
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, który przechowuje serializowane dane obiektu.

context
StreamingContext

Kontekstowe informacje o źródle lub miejscu docelowym.

Atrybuty

Wyjątki

Argument info ma wartość null.

Nie można poprawnie zdeserializować wyjątku.

Uwagi

Ten konstruktor jest wywoływany podczas deserializacji w celu ponownego utworzenia obiektu wyjątku przesyłanego przez strumień. 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
Ź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 wyjątków wewnętrznych, 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, które są 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
Ź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, aby upewnić się, że ten ciąg został zlokalizowany dla bieżącej kultury systemu.

innerException
Exception

Wyjątek, który jest 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 InnerException we właściwości . Właściwość InnerException zwraca tę samą wartość, która jest przekazywana do konstruktora lub null jeśli InnerException właściwość nie dostarcza wartości wyjątku wewnętrznego do konstruktora.

W poniższej tabeli przedstawiono początkowe wartości właściwości dla wystąpienia AggregateExceptionklasy .

Majątek Wartość
InnerException null.
Message Ciąg komunikatu o błędzie określony w pliku message.

Zobacz też

Dotyczy

AggregateException(String, Exception[])

Źródło:
AggregateException.cs
Źródło:
AggregateException.cs
Ź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 wyjątków wewnętrznych, 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, które są przyczyną bieżącego wyjątku.

Wyjątki

Argument innerExceptions ma wartość null.

Element elementu innerExceptions ma wartość null.

Dotyczy