UICancelOption UICancelOption UICancelOption UICancelOption Enum

定义

指定当用户在操作中单击“取消”时是否引发异常。Specifies whether an exception is thrown if the user clicks Cancel during an operation.

public enum class UICancelOption
public enum UICancelOption
type UICancelOption = 
Public Enum UICancelOption
继承
UICancelOptionUICancelOptionUICancelOptionUICancelOption

字段

DoNothing DoNothing DoNothing DoNothing 2

当用户单击“取消”时不执行任何操作。Do nothing when the user clicks Cancel.

ThrowException ThrowException ThrowException ThrowException 3

当用户单击“取消”时引发异常。Throw an exception when the user clicks Cancel.

注解

此枚举确定用户在OperationCanceledException操作过程中单击 "取消" 时是否引发。This enumeration determines whether an OperationCanceledException is thrown when a user clicks Cancel during an operation. 在任一情况下, 操作都将被取消。In either case, the operation is canceled.

适用于

另请参阅