TestContext.CancellationTokenSource Propriedade

Definição

Obtém ou define a origem do token de cancelamento. Essa origem do token é cancelada quando o teste atinge o tempo limite. Além disso, quando explicitamente cancelado, o teste será anulado

public virtual System.Threading.CancellationTokenSource CancellationTokenSource { get; protected set; }
public virtual System.Threading.CancellationTokenSource CancellationTokenSource { get; protected internal set; }
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public virtual System.Threading.CancellationTokenSource CancellationTokenSource { get; protected internal set; }
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.CompilerServices.Nullable(1)]
public virtual System.Threading.CancellationTokenSource CancellationTokenSource { get; protected internal set; }
member this.CancellationTokenSource : System.Threading.CancellationTokenSource with get, set
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
member this.CancellationTokenSource : System.Threading.CancellationTokenSource with get, set
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
[<System.Runtime.CompilerServices.Nullable(1)>]
member this.CancellationTokenSource : System.Threading.CancellationTokenSource with get, set
Public Overridable Property CancellationTokenSource As CancellationTokenSource

Valor da propriedade

Atributos

Aplica-se a