Dela via


ChoiceFactory.ToChoices(IList<String>) Metod

Definition

Tar en lista med strängar och returnerar dem som Choice.

public static System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Choices.Choice> ToChoices(System.Collections.Generic.IList<string> choices);
static member ToChoices : System.Collections.Generic.IList<string> -> System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Choices.Choice>
Public Shared Function ToChoices (choices As IList(Of String)) As IList(Of Choice)

Parametrar

choices
IList<String>

Listan över alternativ som ska läggas till.

Returer

En lista över alternativ.

Gäller för