Share via


PromptValidatorContext<T>.AttemptCount Property

Definition

Gets the number of times this instance of the prompt has been executed.

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

Property Value

A number indicating how many times the prompt was invoked (starting at 1 for the first time it was called).

Remarks

This count is set when the prompt is added to the dialog stack.

Applies to