次の方法で共有


Prompter<T>.ValidatePattern メソッド

定義

実際のフィールドを参照していることを確認して、パターンを検証します。

public static bool ValidatePattern(Microsoft.Bot.Builder.FormFlow.IForm<T> form, string pattern, Microsoft.Bot.Builder.FormFlow.Advanced.IField<T> field, int argLimit = 0);
static member ValidatePattern : Microsoft.Bot.Builder.FormFlow.IForm<'T (requires 'T : null)> * string * Microsoft.Bot.Builder.FormFlow.Advanced.IField<'T (requires 'T : null)> * int -> bool
Public Shared Function ValidatePattern (form As IForm(Of T), pattern As String, field As IField(Of T), Optional argLimit As Integer = 0) As Boolean

パラメーター

form
IForm<T>

フォーム。

pattern
String

パターンを指定します。

field
IField<T>

パターンの基本フィールド。

argLimit
Int32

パターンに渡される引数の数。

戻り値

成功した場合は true、失敗した場合は false。

適用対象