OperationCanceledException.CancellationToken OperationCanceledException.CancellationToken OperationCanceledException.CancellationToken OperationCanceledException.CancellationToken Property

Definición

Obtiene un token de cancelación asociado a la operación que se canceló.Gets a token associated with the operation that was canceled.

public:
 property System::Threading::CancellationToken CancellationToken { System::Threading::CancellationToken get(); };
public System.Threading.CancellationToken CancellationToken { get; }
member this.CancellationToken : System.Threading.CancellationToken
Public ReadOnly Property CancellationToken As CancellationToken

Valor de propiedad

Un token de cancelación asociado a la operación que se canceló, o un token predeterminado.A token associated with the operation that was canceled, or a default token.

Comentarios

Si el token está asociado a una operación cancelada, la CancellationToken.IsCancellationRequested propiedad del token devuelve. trueIf the token is associated with a canceled operation, the CancellationToken.IsCancellationRequested property of the token returns true.

Se aplica a