Delen via


Prompt<T>.AppendChoices Methode

Definitie

Overloads

AppendChoices(IMessageActivity, String, IList<Choice>, ListStyle, ChoiceFactoryOptions, CancellationToken)

Wanneer deze wordt overschreven in een afgeleide klasse, voegt u keuzes toe aan de activiteit wanneer de gebruiker om invoer wordt gevraagd.

AppendChoices(IMessageActivity, String, IList<Choice>, ListStyle, ChoiceFactoryOptions, String, IList<String>, CancellationToken)

Wanneer deze wordt overschreven in een afgeleide klasse, voegt u keuzes toe aan de activiteit wanneer de gebruiker om invoer wordt gevraagd.

AppendChoices(IMessageActivity, String, IList<Choice>, ListStyle, ChoiceFactoryOptions, CancellationToken)

Wanneer deze wordt overschreven in een afgeleide klasse, voegt u keuzes toe aan de activiteit wanneer de gebruiker om invoer wordt gevraagd.

protected virtual Microsoft.Bot.Schema.IMessageActivity AppendChoices(Microsoft.Bot.Schema.IMessageActivity prompt, string channelId, System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Choices.Choice> choices, Microsoft.Bot.Builder.Dialogs.Choices.ListStyle style, Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AppendChoices : Microsoft.Bot.Schema.IMessageActivity * string * System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Choices.Choice> * Microsoft.Bot.Builder.Dialogs.Choices.ListStyle * Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions * System.Threading.CancellationToken -> Microsoft.Bot.Schema.IMessageActivity
override this.AppendChoices : Microsoft.Bot.Schema.IMessageActivity * string * System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Choices.Choice> * Microsoft.Bot.Builder.Dialogs.Choices.ListStyle * Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions * System.Threading.CancellationToken -> Microsoft.Bot.Schema.IMessageActivity
Protected Overridable Function AppendChoices (prompt As IMessageActivity, channelId As String, choices As IList(Of Choice), style As ListStyle, Optional options As ChoiceFactoryOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As IMessageActivity

Parameters

prompt
IMessageActivity

De activiteit waaraan u de keuzes wilt toevoegen.

channelId
String

De id van het kanaal van de gebruiker.

choices
IList<Choice>

De keuzes die moeten worden toegevoegd.

style
ListStyle

Geeft aan hoe de keuzes aan de gebruiker moeten worden gepresenteerd.

options
ChoiceFactoryOptions

De opmaakopties die moeten worden gebruikt bij het presenteren van de opties.

cancellationToken
CancellationToken

Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om kennisgeving van annulering te ontvangen.

Retouren

Een Task die de asynchrone bewerking vertegenwoordigt.

Opmerkingen

Als de taak is geslaagd, bevat het resultaat de bijgewerkte activiteit.

Van toepassing op

AppendChoices(IMessageActivity, String, IList<Choice>, ListStyle, ChoiceFactoryOptions, String, IList<String>, CancellationToken)

Wanneer deze wordt overschreven in een afgeleide klasse, voegt u keuzes toe aan de activiteit wanneer de gebruiker om invoer wordt gevraagd.

protected virtual Microsoft.Bot.Schema.IMessageActivity AppendChoices(Microsoft.Bot.Schema.IMessageActivity prompt, string channelId, System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Choices.Choice> choices, Microsoft.Bot.Builder.Dialogs.Choices.ListStyle style, Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions options = default, string conversationType = default, System.Collections.Generic.IList<string> toList = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AppendChoices : Microsoft.Bot.Schema.IMessageActivity * string * System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Choices.Choice> * Microsoft.Bot.Builder.Dialogs.Choices.ListStyle * Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions * string * System.Collections.Generic.IList<string> * System.Threading.CancellationToken -> Microsoft.Bot.Schema.IMessageActivity
override this.AppendChoices : Microsoft.Bot.Schema.IMessageActivity * string * System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Choices.Choice> * Microsoft.Bot.Builder.Dialogs.Choices.ListStyle * Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions * string * System.Collections.Generic.IList<string> * System.Threading.CancellationToken -> Microsoft.Bot.Schema.IMessageActivity
Protected Overridable Function AppendChoices (prompt As IMessageActivity, channelId As String, choices As IList(Of Choice), style As ListStyle, Optional options As ChoiceFactoryOptions = Nothing, Optional conversationType As String = Nothing, Optional toList As IList(Of String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As IMessageActivity

Parameters

prompt
IMessageActivity

De activiteit waaraan u de keuzes wilt toevoegen.

channelId
String

De id van het kanaal van de gebruiker.

choices
IList<Choice>

De keuzes die moeten worden toegevoegd.

style
ListStyle

Geeft aan hoe de keuzes aan de gebruiker moeten worden gepresenteerd.

options
ChoiceFactoryOptions

De opmaakopties die moeten worden gebruikt bij het presenteren van de opties.

conversationType
String

Het type gesprek.

toList
IList<String>

De lijst met geadresseerden.

cancellationToken
CancellationToken

Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om kennisgeving van annulering te ontvangen.

Retouren

Een Task die de asynchrone bewerking vertegenwoordigt.

Opmerkingen

Als de taak is geslaagd, bevat het resultaat de bijgewerkte activiteit.

Van toepassing op