System.ComponentModel.BackgroundWorker.CancellationPending Property

Gets a value indicating whether the application has requested cancellation of a background operation.

Syntax

[System.ComponentModel.Browsable(false)]
public bool CancellationPending { get; }

Value

Documentation for this section has not yet been entered.

Remarks

If BackgroundWorker.CancellationPending is true, then the BackgroundWorker.CancelAsync method has been called on the System.ComponentModel.BackgroundWorker.

This property is meant for use by the worker thread, which should periodically check BackgroundWorker.CancellationPending and abort the background operation when it is set to true.

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0