Prompter<T>.ValidatePattern Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.