System.ComponentModel.AsyncCompletedEventArgs.Cancelled Property

Gets a value indicating whether an asynchronous operation has been canceled.

Syntax

public bool Cancelled { get; }

Value

Documentation for this section has not yet been entered.

Remarks

When the AsyncCompletedEventArgs.Cancelled property is true, the asynchronous operation was interrupted.

The client application's event-handler delegate should check the AsyncCompletedEventArgs.Cancelled property before accessing any properties in a class derived from System.ComponentModel.AsyncCompletedEventArgs; otherwise, the property will raise an InvalidOperationException if the asynchronous operation was interrupted.

Requirements

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