IFormBuilder<T>.Confirm 方法

定义

重载

Confirm(MessageDelegate<T>, ActiveDelegate<T>, IEnumerable<String>)

使用委托生成确认,以动态生成消息。

Confirm(PromptAttribute, ActiveDelegate<T>, IEnumerable<String>)

添加确认步骤。

Confirm(String, ActiveDelegate<T>, IEnumerable<String>)

添加确认步骤。

Confirm(MessageDelegate<T>, ActiveDelegate<T>, IEnumerable<String>)

使用委托生成确认,以动态生成消息。

public Microsoft.Bot.Builder.FormFlow.IFormBuilder<T> Confirm(Microsoft.Bot.Builder.FormFlow.MessageDelegate<T> generateMessage, Microsoft.Bot.Builder.FormFlow.ActiveDelegate<T> condition = default, System.Collections.Generic.IEnumerable<string> dependencies = default);
abstract member Confirm : Microsoft.Bot.Builder.FormFlow.MessageDelegate<'T (requires 'T : null)> * Microsoft.Bot.Builder.FormFlow.ActiveDelegate<'T (requires 'T : null)> * seq<string> -> Microsoft.Bot.Builder.FormFlow.IFormBuilder<'T (requires 'T : null)>
Public Function Confirm (generateMessage As MessageDelegate(Of T), Optional condition As ActiveDelegate(Of T) = Nothing, Optional dependencies As IEnumerable(Of String) = Nothing) As IFormBuilder(Of T)

参数

generateMessage
MessageDelegate<T>

用于生成消息的委托。

condition
ActiveDelegate<T>

此步骤是否处于活动状态。

dependencies
IEnumerable<String>

此确认依赖于哪些字段。

返回

修改了 IFormBuilder。

适用于

Confirm(PromptAttribute, ActiveDelegate<T>, IEnumerable<String>)

添加确认步骤。

public Microsoft.Bot.Builder.FormFlow.IFormBuilder<T> Confirm(Microsoft.Bot.Builder.FormFlow.PromptAttribute prompt, Microsoft.Bot.Builder.FormFlow.ActiveDelegate<T> condition = default, System.Collections.Generic.IEnumerable<string> dependencies = default);
abstract member Confirm : Microsoft.Bot.Builder.FormFlow.PromptAttribute * Microsoft.Bot.Builder.FormFlow.ActiveDelegate<'T (requires 'T : null)> * seq<string> -> Microsoft.Bot.Builder.FormFlow.IFormBuilder<'T (requires 'T : null)>
Public Function Confirm (prompt As PromptAttribute, Optional condition As ActiveDelegate(Of T) = Nothing, Optional dependencies As IEnumerable(Of String) = Nothing) As IFormBuilder(Of T)

参数

prompt
PromptAttribute

提示使用 进行确认。

condition
ActiveDelegate<T>

委托以测试确认是否适用于当前窗体状态。

dependencies
IEnumerable<String>

此确认依赖于哪些字段。

返回

修改了 IFormBuilder。

注解

默认情况下,依赖项将是在此确认之前定义的所有活动步骤。

适用于

Confirm(String, ActiveDelegate<T>, IEnumerable<String>)

添加确认步骤。

public Microsoft.Bot.Builder.FormFlow.IFormBuilder<T> Confirm(string prompt = default, Microsoft.Bot.Builder.FormFlow.ActiveDelegate<T> condition = default, System.Collections.Generic.IEnumerable<string> dependencies = default);
abstract member Confirm : string * Microsoft.Bot.Builder.FormFlow.ActiveDelegate<'T (requires 'T : null)> * seq<string> -> Microsoft.Bot.Builder.FormFlow.IFormBuilder<'T (requires 'T : null)>
Public Function Confirm (Optional prompt As String = Nothing, Optional condition As ActiveDelegate(Of T) = Nothing, Optional dependencies As IEnumerable(Of String) = Nothing) As IFormBuilder(Of T)

参数

prompt
String

提示使用 进行确认。

condition
ActiveDelegate<T>

委托以测试确认是否适用于当前窗体状态。

dependencies
IEnumerable<String>

此确认依赖于哪些字段。

返回

修改了 IFormBuilder。

注解

如果未提供提示,将使用 \ref patterns 元素 {*} 进行确认。 默认情况下,依赖项将是在此确认之前定义的所有活动步骤。

适用于