BackgroundWorker.WorkerSupportsCancellation BackgroundWorker.WorkerSupportsCancellation BackgroundWorker.WorkerSupportsCancellation BackgroundWorker.WorkerSupportsCancellation Property

Definición

Obtiene o establece un valor que indica si BackgroundWorker admite la cancelación asincrónica.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 de propiedad

true si BackgroundWorker admite la cancelación; de lo contrario, false.true if the BackgroundWorker supports cancellation; otherwise false. De manera predeterminada, es false.The default is false.

Comentarios

Establezca la WorkerSupportsCancellation propiedad en true si desea que admita BackgroundWorker la cancelación.Set the WorkerSupportsCancellation property to true if you want the BackgroundWorker to support cancellation. Cuando esta propiedad es true, puede llamar al CancelAsync método para interrumpir una operación en segundo plano.When this property is true, you can call the CancelAsync method to interrupt a background operation.

Se aplica a

Consulte también: