语言

IFormBuilder<T>.Confirm 方法

定义

重载

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模式元素{*}来确认。 依赖默认情况下都是在此确认前定义的活跃步骤。

适用于