BackgroundWorker.WorkerSupportsCancellation Proprietà
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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.