InterruptionToken
InterruptionToken class
此类表示用于指示长时间运行的任务是否请求中断的令牌。
public class InterruptionToken : IInterruptionToken
Properties
Name | Description |
---|---|
static None { get; } | 表示一个空的中断令牌。使用此令牌时,长时间运行的操作将永远不会被 Interrupt 中断。 |
IsInterruptionRequested { get; } | 如果请求了中断,则返回 Boolean.true。 |
Methods
Name | Description |
---|---|
ThrowIfInterruptionRequested() | 如果请求了中断,则抛出 OperationCanceledException。 |
See Also
- interface IInterruptionToken
- namespace Aspose.Slides
- assembly Aspose.Slides