Aracılığıyla paylaş


AggregateException Oluşturucular

Tanım

AggregateException sınıfının yeni bir örneğini başlatır.

Aşırı Yüklemeler

Name Description
AggregateException()

hatayı açıklayan sistem tarafından sağlanan bir iletiyle AggregateException sınıfının yeni bir örneğini başlatır.

AggregateException(IEnumerable<Exception>)

Bu özel durumun nedeni olan iç özel durumlara başvurularla sınıfının yeni bir örneğini AggregateException başlatır.

AggregateException(Exception[])

Bu özel durumun nedeni olan iç özel durumlara başvurularla sınıfının yeni bir örneğini AggregateException başlatır.

AggregateException(String)

hatayı açıklayan belirtilen bir iletiyle AggregateException sınıfının yeni bir örneğini başlatır.

AggregateException(SerializationInfo, StreamingContext)
Geçersiz.

Serileştirilmiş verilerle sınıfının yeni bir örneğini AggregateException başlatır.

AggregateException(String, IEnumerable<Exception>)

Sınıfın AggregateException yeni bir örneğini belirtilen bir hata iletisiyle başlatır ve bu özel durumun nedeni olan iç özel durumlara başvurur.

AggregateException(String, Exception)

Sınıfın AggregateException yeni bir örneğini belirtilen bir hata iletisiyle ve bu özel durumun nedeni olan iç özel duruma başvuruyla başlatır.

AggregateException(String, Exception[])

Sınıfın AggregateException yeni bir örneğini belirtilen bir hata iletisiyle başlatır ve bu özel durumun nedeni olan iç özel durumlara başvurur.

AggregateException()

Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs

hatayı açıklayan sistem tarafından sağlanan bir iletiyle AggregateException sınıfının yeni bir örneğini başlatır.

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

Açıklamalar

Bu oluşturucu, yeni örneğin özelliğini sistem tarafından sağlanan ve "System.AggregateException: Bir veya daha fazla hata oluştu" gibi hatayı açıklayan bir iletiye başlatır Message . Bu ileti geçerli sistem kültürünü dikkate alır.

Aşağıdaki tabloda, örneğinin ilk özellik değerleri gösterilmektedir AggregateException.

Mülkiyet Değer
InnerException null.
Message Yerelleştirilmiş hata iletisi dizesi.

Ayrıca bkz.

Şunlara uygulanır

AggregateException(IEnumerable<Exception>)

Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs

Bu özel durumun nedeni olan iç özel durumlara başvurularla sınıfının yeni bir örneğini AggregateException başlatır.

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))

Parametreler

innerExceptions
IEnumerable<Exception>

Geçerli özel durumun nedeni olan özel durumlar.

Özel durumlar

Bağımsız innerExceptions değişken null.

öğesinin innerExceptions öğesi null.

Şunlara uygulanır

AggregateException(Exception[])

Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs

Bu özel durumun nedeni olan iç özel durumlara başvurularla sınıfının yeni bir örneğini AggregateException başlatır.

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

Parametreler

innerExceptions
Exception[]

Geçerli özel durumun nedeni olan özel durumlar.

Özel durumlar

Bağımsız innerExceptions değişken null.

öğesinin innerExceptions öğesi null.

Şunlara uygulanır

AggregateException(String)

Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs

hatayı açıklayan belirtilen bir iletiyle AggregateException sınıfının yeni bir örneğini başlatır.

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

Parametreler

message
String

Özel durumu açıklayan ileti. Bu dizenin geçerli sistem kültürü için yerelleştirildiğinden emin olmak için bu oluşturucunun çağıranı gereklidir.

Açıklamalar

Aşağıdaki tabloda, örneğinin ilk özellik değerleri gösterilmektedir AggregateException.

Mülkiyet Değer
InnerException null.
Message messageiçinde belirtilen hata iletisi dizesi.

Ayrıca bkz.

Şunlara uygulanır

AggregateException(SerializationInfo, StreamingContext)

Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs

Dikkat

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

Serileştirilmiş verilerle sınıfının yeni bir örneğini AggregateException başlatır.

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)

Parametreler

info
SerializationInfo

Serileştirilmiş nesne verilerini tutan nesne.

context
StreamingContext

Kaynak veya hedef hakkındaki bağlamsal bilgiler.

Öznitelikler

Özel durumlar

Bağımsız info değişken null.

Özel durum düzgün seri durumdan çıkarılamadı.

Açıklamalar

Bu oluşturucu, bir akış üzerinden iletilen özel durum nesnesini yeniden oluşturmak için seri durumdan çıkarma sırasında çağrılır. Daha fazla bilgi için bkz. XML ve SOAP Serileştirme.

Ayrıca bkz.

Şunlara uygulanır

AggregateException(String, IEnumerable<Exception>)

Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs

Sınıfın AggregateException yeni bir örneğini belirtilen bir hata iletisiyle başlatır ve bu özel durumun nedeni olan iç özel durumlara başvurur.

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))

Parametreler

message
String

Özel durumun nedenini açıklayan hata iletisi.

innerExceptions
IEnumerable<Exception>

Geçerli özel durumun nedeni olan özel durumlar.

Özel durumlar

Bağımsız innerExceptions değişken null.

öğesinin innerExceptions öğesi null.

Şunlara uygulanır

AggregateException(String, Exception)

Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs

Sınıfın AggregateException yeni bir örneğini belirtilen bir hata iletisiyle ve bu özel durumun nedeni olan iç özel duruma başvuruyla başlatır.

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)

Parametreler

message
String

Özel durumu açıklayan ileti. Bu dizenin geçerli sistem kültürü için yerelleştirildiğinden emin olmak için bu oluşturucunun çağıranı gereklidir.

innerException
Exception

Geçerli özel durumun nedeni olan özel durum. innerException parametresi değilsenull, geçerli özel durum, iç özel durumu işleyen bir catch blokta oluşturulur.

Özel durumlar

Bağımsız innerException değişken null.

Açıklamalar

Önceki bir özel durumun doğrudan sonucu olarak oluşan bir özel durum, özelliğindeki önceki özel duruma başvuru içermelidir InnerException . InnerException özelliği oluşturucuya geçirilen aynı değeri döndürür veya null özelliği oluşturucuya iç özel durum değeri sağlamaz.InnerException

Aşağıdaki tabloda, örneğinin ilk özellik değerleri gösterilmektedir AggregateException.

Mülkiyet Değer
InnerException null.
Message messageiçinde belirtilen hata iletisi dizesi.

Ayrıca bkz.

Şunlara uygulanır

AggregateException(String, Exception[])

Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs
Kaynak:
AggregateException.cs

Sınıfın AggregateException yeni bir örneğini belirtilen bir hata iletisiyle başlatır ve bu özel durumun nedeni olan iç özel durumlara başvurur.

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())

Parametreler

message
String

Özel durumun nedenini açıklayan hata iletisi.

innerExceptions
Exception[]

Geçerli özel durumun nedeni olan özel durumlar.

Özel durumlar

Bağımsız innerExceptions değişken null.

öğesinin innerExceptions öğesi null.

Şunlara uygulanır