다음을 통해 공유


AggregateException 생성자

정의

AggregateException 클래스의 새 인스턴스를 초기화합니다.

오버로드

Name Description
AggregateException()

오류를 설명하는 시스템 제공 메시지를 사용하여 AggregateException 클래스의 새 인스턴스를 초기화합니다.

AggregateException(IEnumerable<Exception>)

이 예외의 AggregateException 원인인 내부 예외에 대한 참조를 사용하여 클래스의 새 인스턴스를 초기화합니다.

AggregateException(Exception[])

이 예외의 AggregateException 원인인 내부 예외에 대한 참조를 사용하여 클래스의 새 인스턴스를 초기화합니다.

AggregateException(String)

오류를 설명하는 지정된 메시지를 사용하여 AggregateException 클래스의 새 인스턴스를 초기화합니다.

AggregateException(SerializationInfo, StreamingContext)
사용되지 않음.

직렬화된 데이터를 사용하여 클래스의 새 인스턴스를 AggregateException 초기화합니다.

AggregateException(String, IEnumerable<Exception>)

지정된 오류 메시지와 이 예외의 AggregateException 원인인 내부 예외에 대한 참조를 사용하여 클래스의 새 인스턴스를 초기화합니다.

AggregateException(String, Exception)

지정된 오류 메시지와 이 예외의 AggregateException 원인인 내부 예외에 대한 참조를 사용하여 클래스의 새 인스턴스를 초기화합니다.

AggregateException(String, Exception[])

지정된 오류 메시지와 이 예외의 AggregateException 원인인 내부 예외에 대한 참조를 사용하여 클래스의 새 인스턴스를 초기화합니다.

AggregateException()

Source:
AggregateException.cs
Source:
AggregateException.cs
Source:
AggregateException.cs
Source:
AggregateException.cs
Source:
AggregateException.cs

오류를 설명하는 시스템 제공 메시지를 사용하여 AggregateException 클래스의 새 인스턴스를 초기화합니다.

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

설명

이 생성자는 새 인스턴스의 속성을 "System.AggregateException: 하나 이상의 오류가 발생했습니다."와 같은 오류를 설명하는 시스템 제공 메시지로 초기화 Message 합니다. 이 메시지는 현재 시스템 문화권을 고려합니다.

다음 표에서는 인스턴스 AggregateException에 대한 초기 속성 값을 보여 줍니다.

재산 가치
InnerException null;
Message 지역화된 오류 메시지 문자열입니다.

추가 정보

적용 대상

AggregateException(IEnumerable<Exception>)

Source:
AggregateException.cs
Source:
AggregateException.cs
Source:
AggregateException.cs
Source:
AggregateException.cs
Source:
AggregateException.cs

이 예외의 AggregateException 원인인 내부 예외에 대한 참조를 사용하여 클래스의 새 인스턴스를 초기화합니다.

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

매개 변수

innerExceptions
IEnumerable<Exception>

현재 예외의 원인인 예외입니다.

예외

인수가 innerExceptions null입니다.

요소는 innerExceptions null입니다.

적용 대상

AggregateException(Exception[])

Source:
AggregateException.cs
Source:
AggregateException.cs
Source:
AggregateException.cs
Source:
AggregateException.cs
Source:
AggregateException.cs

이 예외의 AggregateException 원인인 내부 예외에 대한 참조를 사용하여 클래스의 새 인스턴스를 초기화합니다.

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

매개 변수

innerExceptions
Exception[]

현재 예외의 원인인 예외입니다.

예외

인수가 innerExceptions null입니다.

요소는 innerExceptions null입니다.

적용 대상

AggregateException(String)

Source:
AggregateException.cs
Source:
AggregateException.cs
Source:
AggregateException.cs
Source:
AggregateException.cs
Source:
AggregateException.cs

오류를 설명하는 지정된 메시지를 사용하여 AggregateException 클래스의 새 인스턴스를 초기화합니다.

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

매개 변수

message
String

예외를 설명하는 메시지입니다. 이 문자열이 현재 시스템 문화권에 맞게 지역화되었는지 확인하려면 이 생성자의 호출자가 필요합니다.

설명

다음 표에서는 인스턴스 AggregateException에 대한 초기 속성 값을 보여 줍니다.

재산 가치
InnerException null;
Message 에 지정된 오류 메시지 문자열입니다 message.

추가 정보

적용 대상

AggregateException(SerializationInfo, StreamingContext)

Source:
AggregateException.cs
Source:
AggregateException.cs
Source:
AggregateException.cs
Source:
AggregateException.cs
Source:
AggregateException.cs

주의

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

직렬화된 데이터를 사용하여 클래스의 새 인스턴스를 AggregateException 초기화합니다.

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)

매개 변수

info
SerializationInfo

serialize된 개체 데이터를 보유하는 개체입니다.

context
StreamingContext

원본 또는 대상에 대한 컨텍스트 정보입니다.

특성

예외

인수가 info null입니다.

예외를 올바르게 역직렬화할 수 없습니다.

설명

이 생성자는 역직렬화 중에 호출되어 스트림을 통해 전송되는 예외 개체를 다시 구성합니다. 자세한 내용은 XML 및 SOAP Serialization을 참조하세요.

추가 정보

적용 대상

AggregateException(String, IEnumerable<Exception>)

Source:
AggregateException.cs
Source:
AggregateException.cs
Source:
AggregateException.cs
Source:
AggregateException.cs
Source:
AggregateException.cs

지정된 오류 메시지와 이 예외의 AggregateException 원인인 내부 예외에 대한 참조를 사용하여 클래스의 새 인스턴스를 초기화합니다.

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

매개 변수

message
String

예외의 이유를 설명하는 오류 메시지입니다.

innerExceptions
IEnumerable<Exception>

현재 예외의 원인인 예외입니다.

예외

인수가 innerExceptions null입니다.

요소는 innerExceptions null입니다.

적용 대상

AggregateException(String, Exception)

Source:
AggregateException.cs
Source:
AggregateException.cs
Source:
AggregateException.cs
Source:
AggregateException.cs
Source:
AggregateException.cs

지정된 오류 메시지와 이 예외의 AggregateException 원인인 내부 예외에 대한 참조를 사용하여 클래스의 새 인스턴스를 초기화합니다.

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)

매개 변수

message
String

예외를 설명하는 메시지입니다. 이 문자열이 현재 시스템 문화권에 맞게 지역화되었는지 확인하려면 이 생성자의 호출자가 필요합니다.

innerException
Exception

현재 예외의 원인인 예외입니다. 매개 변수가 innerException 아닌 null경우 내부 예외를 catch 처리하는 블록에서 현재 예외가 발생합니다.

예외

인수가 innerException null입니다.

설명

이전 예외의 직접적인 결과로 throw되는 예외에는 속성의 이전 예외에 대한 참조가 InnerException 포함되어야 합니다. 속성 생성 InnerException 자에 전달 되는 동일한 값을 반환 하거나 null 속성 생성자에 내부 예외 값을 제공 하지 않는 경우 InnerException .

다음 표에서는 인스턴스 AggregateException에 대한 초기 속성 값을 보여 줍니다.

재산 가치
InnerException null;
Message 에 지정된 오류 메시지 문자열입니다 message.

추가 정보

적용 대상

AggregateException(String, Exception[])

Source:
AggregateException.cs
Source:
AggregateException.cs
Source:
AggregateException.cs
Source:
AggregateException.cs
Source:
AggregateException.cs

지정된 오류 메시지와 이 예외의 AggregateException 원인인 내부 예외에 대한 참조를 사용하여 클래스의 새 인스턴스를 초기화합니다.

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

매개 변수

message
String

예외의 이유를 설명하는 오류 메시지입니다.

innerExceptions
Exception[]

현재 예외의 원인인 예외입니다.

예외

인수가 innerExceptions null입니다.

요소는 innerExceptions null입니다.

적용 대상