语言

PromptValidatorContext<T>.AttemptCount 属性

定义

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

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

属性值

一个数字表示提示被调用了多少次(第一次被调用时从1开始)。

注解

当提示添加到对话框堆栈时,将设置此计数。

适用于