語言

PromptValidatorContext<T>.AttemptCount 屬性

定義

取得執行這個提示實例的次數。

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

屬性值

一個數字表示提示被呼叫的次數(第一次被叫用時從 1 開始)。

備註

當提示新增至對話框堆疊時,就會設定此計數。

適用於