IFormBuilder<T>.Message 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.
Overloads
Message(MessageDelegate<T>, ActiveDelegate<T>, IEnumerable<String>) |
Generate a message using a delegate to dynamically build the message. |
Message(PromptAttribute, ActiveDelegate<T>, IEnumerable<String>) |
Show a message with more format control that does not require a response. |
Message(String, ActiveDelegate<T>, IEnumerable<String>) |
Show a message that does not require a response. |
Message(MessageDelegate<T>, ActiveDelegate<T>, IEnumerable<String>)
Generate a message using a delegate to dynamically build the message.
public Microsoft.Bot.Builder.FormFlow.IFormBuilder<T> Message (Microsoft.Bot.Builder.FormFlow.MessageDelegate<T> generateMessage, Microsoft.Bot.Builder.FormFlow.ActiveDelegate<T> condition = default, System.Collections.Generic.IEnumerable<string> dependencies = default);
abstract member Message : 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 Message (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>
Fields message depends on.
Returns
Modified IFormBuilder.
Applies to
Message(PromptAttribute, ActiveDelegate<T>, IEnumerable<String>)
Show a message with more format control that does not require a response.
public Microsoft.Bot.Builder.FormFlow.IFormBuilder<T> Message (Microsoft.Bot.Builder.FormFlow.PromptAttribute prompt, Microsoft.Bot.Builder.FormFlow.ActiveDelegate<T> condition = default, System.Collections.Generic.IEnumerable<string> dependencies = default);
abstract member Message : 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 Message (prompt As PromptAttribute, Optional condition As ActiveDelegate(Of T) = Nothing, Optional dependencies As IEnumerable(Of String) = Nothing) As IFormBuilder(Of T)
Parameters
- prompt
- PromptAttribute
Message to fill in and send.
- condition
- ActiveDelegate<T>
Whether or not this step is active.
- dependencies
- IEnumerable<String>
Fields message depends on.
Returns
Modified IFormBuilder.
Applies to
Message(String, ActiveDelegate<T>, IEnumerable<String>)
Show a message that does not require a response.
public Microsoft.Bot.Builder.FormFlow.IFormBuilder<T> Message (string message, Microsoft.Bot.Builder.FormFlow.ActiveDelegate<T> condition = default, System.Collections.Generic.IEnumerable<string> dependencies = default);
abstract member Message : string * Microsoft.Bot.Builder.FormFlow.ActiveDelegate<'T (requires 'T : null)> * seq<string> -> Microsoft.Bot.Builder.FormFlow.IFormBuilder<'T (requires 'T : null)>
Public Function Message (message As String, Optional condition As ActiveDelegate(Of T) = Nothing, Optional dependencies As IEnumerable(Of String) = Nothing) As IFormBuilder(Of T)
Parameters
- message
- String
A \ref patterns string to fill in and send.
- condition
- ActiveDelegate<T>
Whether or not this step is active.
- dependencies
- IEnumerable<String>
Fields message depends on.
Returns
Modified IFormBuilder.