ChoiceFactory.SuggestedAction 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
SuggestedAction(IList<Choice>, String, String) |
Creates a message activity containing a list of choices that have been added as suggested actions. |
SuggestedAction(IList<String>, String, String) |
Creates a message activity containing a list of choices that have been added as suggested actions. |
SuggestedAction(IList<Choice>, String, String, IList<String>) |
Creates a message activity containing a list of choices that have been added as suggested actions. |
SuggestedAction(IList<String>, String, String, IList<String>) |
Creates a message activity containing a list of choices that have been added as suggested actions. |
SuggestedAction(IList<Choice>, String, String)
Creates a message activity containing a list of choices that have been added as suggested actions.
public static Microsoft.Bot.Schema.IMessageActivity SuggestedAction (System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Choices.Choice> choices, string text = default, string speak = default);
static member SuggestedAction : System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Choices.Choice> * string * string -> Microsoft.Bot.Schema.IMessageActivity
Public Shared Function SuggestedAction (choices As IList(Of Choice), Optional text As String = Nothing, Optional speak As String = Nothing) As IMessageActivity
Parameters
- text
- String
Optional, text of the message.
- speak
- String
Optional, SSML text to be spoken by the bot on a speech-enabled channel.
Returns
An activity with choices as suggested actions.
Applies to
SuggestedAction(IList<String>, String, String)
Creates a message activity containing a list of choices that have been added as suggested actions.
public static Microsoft.Bot.Schema.IMessageActivity SuggestedAction (System.Collections.Generic.IList<string> choices, string text = default, string speak = default);
static member SuggestedAction : System.Collections.Generic.IList<string> * string * string -> Microsoft.Bot.Schema.IMessageActivity
Public Shared Function SuggestedAction (choices As IList(Of String), Optional text As String = Nothing, Optional speak As String = Nothing) As IMessageActivity
Parameters
- text
- String
Optional, text of the message.
- speak
- String
Optional, SSML text to be spoken by the bot on a speech-enabled channel.
Returns
An activity with choices as suggested actions.
Applies to
SuggestedAction(IList<Choice>, String, String, IList<String>)
Creates a message activity containing a list of choices that have been added as suggested actions.
public static Microsoft.Bot.Schema.IMessageActivity SuggestedAction (System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Choices.Choice> choices, string text = default, string speak = default, System.Collections.Generic.IList<string> toList = default);
static member SuggestedAction : System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Choices.Choice> * string * string * System.Collections.Generic.IList<string> -> Microsoft.Bot.Schema.IMessageActivity
Public Shared Function SuggestedAction (choices As IList(Of Choice), Optional text As String = Nothing, Optional speak As String = Nothing, Optional toList As IList(Of String) = Nothing) As IMessageActivity
Parameters
- text
- String
Optional, text of the message.
- speak
- String
Optional, SSML text to be spoken by the bot on a speech-enabled channel.
Returns
An activity with choices as suggested actions.
Applies to
SuggestedAction(IList<String>, String, String, IList<String>)
Creates a message activity containing a list of choices that have been added as suggested actions.
public static Microsoft.Bot.Schema.IMessageActivity SuggestedAction (System.Collections.Generic.IList<string> choices, string text = default, string speak = default, System.Collections.Generic.IList<string> toList = default);
static member SuggestedAction : System.Collections.Generic.IList<string> * string * string * System.Collections.Generic.IList<string> -> Microsoft.Bot.Schema.IMessageActivity
Public Shared Function SuggestedAction (choices As IList(Of String), Optional text As String = Nothing, Optional speak As String = Nothing, Optional toList As IList(Of String) = Nothing) As IMessageActivity
Parameters
- text
- String
Optional, text of the message.
- speak
- String
Optional, SSML text to be spoken by the bot on a speech-enabled channel.
Returns
An activity with choices as suggested actions.