BackgroundWorker.WorkerSupportsCancellation Propriedade

Definição

Obtém ou define um valor que indica se o BackgroundWorker dá suporte ao cancelamento assíncrono.Gets or sets a value indicating whether the BackgroundWorker supports asynchronous cancellation.

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

Valor da propriedade

Boolean

true se o BackgroundWorker der suporte ao cancelamento; caso contrário, false.true if the BackgroundWorker supports cancellation; otherwise false. O padrão é false.The default is false.

Comentários

Defina a WorkerSupportsCancellation propriedade como true se você quiser que o BackgroundWorker dê suporte ao cancelamento.Set the WorkerSupportsCancellation property to true if you want the BackgroundWorker to support cancellation. Quando essa propriedade é true , você pode chamar o CancelAsync método para interromper uma operação em segundo plano.When this property is true, you can call the CancelAsync method to interrupt a background operation.

Aplica-se a

Confira também