Share via


IFormBuilder<T>.Confirm Method

Definition

Overloads

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

Generate a confirmation using a delegate to dynamically build the message.

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

Add a confirmation step.

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

Add a confirmation step.

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

Generate a confirmation using a delegate to dynamically build the message.

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)

Parameters

generateMessage
MessageDelegate<T>

Delegate for building message.

condition
ActiveDelegate<T>

Whether or not this step is active.

dependencies
IEnumerable<String>

What fields this confirmation depends on.

Returns

Modified IFormBuilder.

Applies to

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

Add a confirmation step.

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)

Parameters

prompt
PromptAttribute

Prompt to use for confirmation.

condition
ActiveDelegate<T>

Delegate to test if confirmation applies to the current form state.

dependencies
IEnumerable<String>

What fields this confirmation depends on.

Returns

Modified IFormBuilder.

Remarks

Dependencies will by default be all active steps defined before this confirmation.

Applies to

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

Add a confirmation step.

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)

Parameters

prompt
String

Prompt to use for confirmation.

condition
ActiveDelegate<T>

Delegate to test if confirmation applies to the current form state.

dependencies
IEnumerable<String>

What fields this confirmation depends on.

Returns

Modified IFormBuilder.

Remarks

If prompt is not supplied the \ref patterns element {*} will be used to confirm. Dependencies will by default be all active steps defined before this confirmation.

Applies to