AdaptiveCardCard Class
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.
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
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) |