Lingua

HeroCard Class

Definition

A Hero card (card with a single, large image).

public class HeroCard : Microsoft.Agents.Core.Models.Card
type HeroCard = class
    inherit Card
Public Class HeroCard
Inherits Card
Inheritance
HeroCard

Constructors

Name Description
HeroCard()

Initializes a new instance of HeroCard.

HeroCard(String, String, String, IList<CardImage>, IList<CardAction>, CardAction)

Initializes a new instance of HeroCard.

Fields

Name Description
ContentType

The content type value of a HeroCard.

Properties

Name Description
Buttons

Set of actions applicable to the current card.

Images

Array of images for the card.

Subtitle

Subtitle of the card.

Tap

A clickable action.

Text

Text for the card.

Title

Title of the card.

Methods

Name Description
AddButton(CardAction)

Adds a button and returns this card.

AddButton(String, String, Object)

Adds a button by title/type/value and returns this card.

AddButtons(CardAction[])

Adds one or more buttons and returns this card.

AddImage(CardImage)

Adds an image and returns this card.

AddImage(String, String)

Adds an image by URL and returns this card.

ToAttachment()

Creates a new attachment from HeroCard.

ToMessage()

Creates a new message activity that includes this card as an attachment.

(Inherited from Card)

Extension Methods

Name Description
ToTeamsAttachment(HeroCard)

Wraps a HeroCard in a Teams Attachment with the appropriate content type.

Applies to