Udostępnij przez


ChoiceFactory.Inline Method

Definition

Creates a message activity that includes a list of choices formatted as an inline list.

public static Microsoft.Agents.Core.Models.IActivity Inline(System.Collections.Generic.IList<Microsoft.Agents.Builder.Dialogs.Choices.Choice> choices, string text = default, string speak = default, Microsoft.Agents.Builder.Dialogs.Choices.ChoiceFactoryOptions options = default);
static member Inline : System.Collections.Generic.IList<Microsoft.Agents.Builder.Dialogs.Choices.Choice> * string * string * Microsoft.Agents.Builder.Dialogs.Choices.ChoiceFactoryOptions -> Microsoft.Agents.Core.Models.IActivity
Public Shared Function Inline (choices As IList(Of Choice), Optional text As String = Nothing, Optional speak As String = Nothing, Optional options As ChoiceFactoryOptions = Nothing) As IActivity

Parameters

choices
IList<Choice>

The list of choices to include.

text
String

Optional, the text of the message to send.

speak
String

Optional, the text to be spoken by your Agent on a speech-enabled channel.

options
ChoiceFactoryOptions

Optional, the formatting options to use when rendering as a list.

Returns

The created message activity.

Applies to