Share via


Extensions.GenerateHeroCard(FormPrompt) Method

Definition

Generate a hero card from a FormPrompt.

public static System.Collections.Generic.IList<Microsoft.Bot.Connector.Attachment> GenerateHeroCard (this Microsoft.Bot.Builder.FormFlow.Advanced.FormPrompt prompt);
static member GenerateHeroCard : Microsoft.Bot.Builder.FormFlow.Advanced.FormPrompt -> System.Collections.Generic.IList<Microsoft.Bot.Connector.Attachment>
<Extension()>
Public Function GenerateHeroCard (prompt As FormPrompt) As IList(Of Attachment)

Parameters

prompt
FormPrompt

Prompt definition.

Returns

Either an empty list if no buttons or a list with one hero card.

Applies to