WorkUnit.Cancelled Method

Checks if the user has requested cancellation of the background operation.
Protected Friend Function Cancelled( _ 
ByVal worker As BackgroundWorker, _ 
ByVal doWorkEventArgs As DoWorkEventArgs
) As Boolean
This language is not supported or no code example is available.
internal protected bool Cancelled( 
BackgroundWorker worker
DoWorkEventArgs doWorkEventArgs 
)
This language is not supported or no code example is available.

Parameters

worker
BackgroundWorker

The background worker thread

doWorkEventArgs
DoWorkEventArgs

DoWork event arguments

Return Value

bool

True if the user has requested cancellation of the background operation.

.NET Framework

Supported in: 4.8

In this article

Definition