Condividi tramite


BackgroundWorker.WorkerSupportsCancellation Proprietà

Definizione

Ottiene o imposta un valore che indica se supporta l'annullamento BackgroundWorker asincrono.

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

Valore della proprietà

true se supporta l'annullamento BackgroundWorker ; in caso contrario false, . Il valore predefinito è false.

Commenti

Impostare la WorkerSupportsCancellation proprietà su true se si desidera che supporti l'annullamento BackgroundWorker . Quando questa proprietà è true, è possibile chiamare il CancelAsync metodo per interrompere un'operazione in background.

Si applica a

Vedi anche