Share via


PromptValidatorContext<T>.AttemptCount 属性

定义

获取此提示实例已执行的次数。

public int AttemptCount { get; }
member this.AttemptCount : int
Public ReadOnly Property AttemptCount As Integer

属性值

一个数字,指示 (从 1 开始首次调用提示) 调用提示的次数。

注解

此计数是在将提示添加到对话框堆栈时设置的。

适用于