TaskCanceledException 클래스
정의
작업 취소를 알리기 위해 사용되는 예외를 나타냅니다.Represents an exception used to communicate task cancellation.
public ref class TaskCanceledException : OperationCanceledException
public class TaskCanceledException : OperationCanceledException
[System.Serializable]
public class TaskCanceledException : OperationCanceledException
type TaskCanceledException = class
inherit OperationCanceledException
[<System.Serializable>]
type TaskCanceledException = class
inherit OperationCanceledException
Public Class TaskCanceledException
Inherits OperationCanceledException
- 상속
- 상속
- 특성
생성자
TaskCanceledException() |
오류를 설명하는 시스템 제공 메시지를 사용하여 TaskCanceledException 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the TaskCanceledException class with a system-supplied message that describes the error. |
TaskCanceledException(SerializationInfo, StreamingContext) |
serialize된 데이터를 사용하여 TaskCanceledException 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the TaskCanceledException class with serialized data. |
TaskCanceledException(String) |
오류를 설명하는 지정한 메시지를 사용하여 TaskCanceledException 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the TaskCanceledException class with a specified message that describes the error. |
TaskCanceledException(String, Exception) |
지정된 오류 메시지와 해당 예외의 원인인 내부 예외에 대한 참조를 사용하여 TaskCanceledException 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the TaskCanceledException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
TaskCanceledException(String, Exception, CancellationToken) |
지정된 오류 메시지, 이 예외의 원인인 내부 예외에 대한 참조 및 취소 토큰을 트리거한 CancellationToken을 사용하여 TaskCanceledException 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the TaskCanceledException class with a specified error message, a reference to the inner exception that is the cause of this exception, and the CancellationToken that triggered the cancellation. |
TaskCanceledException(Task) |
취소된 TaskCanceledException에 대한 참조를 사용하여 Task 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the TaskCanceledException class with a reference to the Task that has been canceled. |
속성
CancellationToken |
취소한 작업과 연결된 취소 토큰을 가져옵니다.Gets a token associated with the operation that was canceled. (다음에서 상속됨 OperationCanceledException) |
Data |
예외에 대한 사용자 정의 정보를 추가로 제공하는 키/값 쌍 컬렉션을 가져옵니다.Gets a collection of key/value pairs that provide additional user-defined information about the exception. (다음에서 상속됨 Exception) |
HelpLink |
이 예외와 연결된 도움말 파일에 대한 링크를 가져오거나 설정합니다.Gets or sets a link to the help file associated with this exception. (다음에서 상속됨 Exception) |
HResult |
특정 예외에 할당된 코드화된 숫자 값인 HRESULT를 가져오거나 설정합니다.Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (다음에서 상속됨 Exception) |
InnerException |
현재 예외를 발생시킨 Exception 인스턴스를 가져옵니다.Gets the Exception instance that caused the current exception. (다음에서 상속됨 Exception) |
Message |
현재 예외를 설명하는 메시지를 가져옵니다.Gets a message that describes the current exception. (다음에서 상속됨 Exception) |
Source |
오류를 발생시키는 애플리케이션 또는 개체의 이름을 가져오거나 설정합니다.Gets or sets the name of the application or the object that causes the error. (다음에서 상속됨 Exception) |
StackTrace |
호출 스택의 직접 실행 프레임 문자열 표현을 가져옵니다.Gets a string representation of the immediate frames on the call stack. (다음에서 상속됨 Exception) |
TargetSite |
현재 예외를 throw하는 메서드를 가져옵니다.Gets the method that throws the current exception. (다음에서 상속됨 Exception) |
Task |
이 예외와 연결된 작업을 가져옵니다.Gets the task associated with this exception. |
메서드
Equals(Object) |
지정된 개체가 현재 개체와 같은지 확인합니다.Determines whether the specified object is equal to the current object. (다음에서 상속됨 Object) |
GetBaseException() |
파생 클래스에서 재정의된 경우 하나 이상의 후속 예외의 근본 원인이 되는 Exception 을 반환합니다.When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (다음에서 상속됨 Exception) |
GetHashCode() |
기본 해시 함수로 작동합니다.Serves as the default hash function. (다음에서 상속됨 Object) |
GetObjectData(SerializationInfo, StreamingContext) |
파생 클래스에서 재정의된 경우 예외에 관한 정보를 SerializationInfo 에 설정합니다.When overridden in a derived class, sets the SerializationInfo with information about the exception. (다음에서 상속됨 Exception) |
GetType() |
현재 인스턴스의 런타임 형식을 가져옵니다.Gets the runtime type of the current instance. (다음에서 상속됨 Exception) |
MemberwiseClone() |
현재 Object의 단순 복사본을 만듭니다.Creates a shallow copy of the current Object. (다음에서 상속됨 Object) |
ToString() |
현재 예외에 대한 문자열 표현을 만들고 반환합니다.Creates and returns a string representation of the current exception. (다음에서 상속됨 Exception) |
이벤트
SerializeObjectState |
예외에 대한 serialize된 데이터가 들어 있는 예외 상태 개체가 만들어지도록 예외가 serialize될 때 발생합니다.Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception. (다음에서 상속됨 Exception) |
적용 대상
스레드 보안
Task속성은 스레드로부터 안전 하며 여러 스레드에서 동시에 사용할 수 있습니다.The Task property is thread-safe and may be used from multiple threads concurrently.