ThrowIfInterruptionRequested

InterruptionToken.ThrowIfInterruptionRequested 方法

如果请求了中断,则抛出 OperationCanceledException。

public void ThrowIfInterruptionRequested()

异常

异常条件
OperationCanceledException在请求中断时抛出。

另请参见