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。

适用于