CancellationTokenSource.Token Propiedad

Definición

Obtiene el objeto CancellationToken asociado a CancellationTokenSource.Gets the CancellationToken associated with this CancellationTokenSource.

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

Valor de propiedad

Excepciones

Se ha eliminado el origen del token.The token source has been disposed.

Se aplica a

Consulte también: