Share via


Prompter<T>.ValidatePattern Method

Definition

Validate pattern by ensuring they refer to real fields.

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

Parameters

form
IForm<T>

The form.

pattern
String

Specifies the pattern.

field
IField<T>

Base field for pattern.

argLimit
Int32

The number of arguments passed to the pattern.

Returns

true if it succeeds, false if it fails.

Applies to