BackgroundWorker.WorkerSupportsCancellation 속성

정의

BackgroundWorker가 비동기 취소를 지원하는지 여부를 나타내는 값을 가져오거나 설정합니다.

public:
 property bool WorkerSupportsCancellation { bool get(); void set(bool value); };
public bool WorkerSupportsCancellation { get; set; }
member this.WorkerSupportsCancellation : bool with get, set
Public Property WorkerSupportsCancellation As Boolean

속성 값

BackgroundWorker가 취소를 지원하면 true이고, 그렇지 않으면 false입니다. 기본값은 false입니다.

설명

취소를 WorkerSupportsCancellation 지원하려면 BackgroundWorker 속성을 로 true 설정합니다. 이 속성이 인 true경우 메서드를 CancelAsync 호출하여 백그라운드 작업을 중단할 수 있습니다.

적용 대상

추가 정보