TaskCompletionSource.SetException 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
SetException(IEnumerable<Exception>) | |
SetException(Exception) |
SetException(IEnumerable<Exception>)
public:
void SetException(System::Collections::Generic::IEnumerable<Exception ^> ^ exceptions);
public void SetException (System.Collections.Generic.IEnumerable<Exception> exceptions);
member this.SetException : seq<Exception> -> unit
Public Sub SetException (exceptions As IEnumerable(Of Exception))
매개 변수
- exceptions
- IEnumerable<Exception>
이 Task에 바인딩할 예외 컬렉션입니다.
예외
exceptions
이(가) null
인 경우
exceptions
에 하나 이상의 null
요소가 있습니다.
기본 Task가 RanToCompletion, Faulted 또는 Canceled의 세 가지 최종 상태 중 하나인 경우
적용 대상
SetException(Exception)
public:
void SetException(Exception ^ exception);
public void SetException (Exception exception);
member this.SetException : Exception -> unit
Public Sub SetException (exception As Exception)
매개 변수
예외
exception
이(가) null
인 경우
기본 Task가 RanToCompletion, Faulted 또는 Canceled의 세 가지 최종 상태 중 하나인 경우