Language

AdaptiveCardCard Class

Definition

A card that carries a raw Adaptive Card JSON payload.

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

Remarks

The JSON is stored verbatim in Content and unpacked into the attachment as nested JSON when the activity is serialized.

Constructors

Name Description
AdaptiveCardCard(Stream)

Initializes a new instance of AdaptiveCardCard from a stream containing Adaptive Card JSON.

AdaptiveCardCard(String)

Initializes a new instance of AdaptiveCardCard from an Adaptive Card JSON string.

Fields

Name Description
Content

The Adaptive Card content as a JSON string.

ContentType

The content type value of an AdaptiveCardCard.

Methods

Name Description
ToAttachment()

Creates a new Attachment that wraps this card.

ToMessage()

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

(Inherited from Card)

Applies to