Prompter<T>.ValidatePattern 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
通过确保它们引用真实字段来验证模式。
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。