Extensions.AddHeroCard<T> Method

Definition

Generates buttons from options and add them to the message.

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)

Type Parameters

T

Type of the options.

Parameters

message
IMessageActivity

The message that the buttons will be added to.

text
String

The text in the HeroCard.

options
IEnumerable<T>

The options that cause generation of buttons.

descriptions
IEnumerable<String>

Descriptions for each option.

Remarks

T should implement ToString().

Applies to