Jaa


ChoiceFactory.SuggestedAction Method

Definition

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

choices
IList<Choice>

The list of choices to add.

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

choices
IList<String>

List of strings representing the choices to add.

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

choices
IList<Choice>

The list of choices to add.

text
String

Optional, text of the message.

speak
String

Optional, SSML text to be spoken by the bot on a speech-enabled channel.

toList
IList<String>

Optional, the list of recipients.

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

choices
IList<String>

List of strings representing the choices to add.

text
String

Optional, text of the message.

speak
String

Optional, SSML text to be spoken by the bot on a speech-enabled channel.

toList
IList<String>

Optional, the list of recipients.

Returns

An activity with choices as suggested actions.

Applies to