Extensions.AddHeroCard<T> Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
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í.
- 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().