TaskFactory.CancellationToken Proprietà

Definizione

Ottiene il token di annullamento predefinito per questa factory delle attività.

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

Valore della proprietà

CancellationToken

Token di annullamento attività predefinito per questa factory delle attività.

Commenti

Questa proprietà restituisce il valore predefinito CancellationToken che verrà assegnato a tutte le attività create da questa factory, a meno che non venga specificato in modo esplicito un altro CancellationToken valore durante la chiamata ai metodi factory.

Si applica a

Vedi anche