Extensions.GenerateHeroCard(FormPrompt) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.