System::Threading::CancellationToken::get_CanBeCanceled metodo

CancellationToken::get_CanBeCanceled method

Restituisce se questo token può trovarsi nello stato annullato.

bool System::Threading::CancellationToken::get_CanBeCanceled() const

ReturnValue

true se questo token può trovarsi nello stato annullato; altrimenti, false.

Osservazioni

I token creati da CancellationTokenSource restituiranno true, mentre il token None restituirà sempre false.

Vedi anche