Sdílet prostřednictvím


Extensions.AddHeroCard<T> Metoda

Definice

Vygeneruje tlačítka z možností a přidá je do zprávy.

public static void AddHeroCard<T> (this Microsoft.Bot.Connector.IMessageActivity message, string text, System.Collections.Generic.IEnumerable<T> options, System.Collections.Generic.IEnumerable<string> descriptions = default);
static member AddHeroCard : Microsoft.Bot.Connector.IMessageActivity * string * seq<'T> * seq<string> -> unit
<Extension()>
Public Sub AddHeroCard(Of T) (message As IMessageActivity, text As String, options As IEnumerable(Of T), Optional descriptions As IEnumerable(Of String) = Nothing)

Parametry typu

T

Typ možností

Parametry

message
IMessageActivity

Zpráva, do které se tlačítka přidají.

text
String

Text v .HeroCard

options
IEnumerable<T>

Možnosti, které způsobují generování tlačítek.

descriptions
IEnumerable<String>

Popisy jednotlivých možností

Poznámky

T by měl implementovat ToString().

Platí pro