CardAction Class
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 action represents a clickable or interactive button for use within cards or as suggested actions. They are used to solicit input from users.Despite their name, card actions are not limited to use solely on cards.
Card actions are meaningful only when sent to channels.
Channels decide how each action manifests in their user experience.In most cases, the cards are clickable. In others, they may be selected by speech input.In cases where the channel does not offer an interactive activation experience (e.g., when interacting over SMS), the channel may not support activation whatsoever.The decision about how to render actions is controlled by normative requirements elsewhere in this document (e.g.within the card format, or within the suggested actions definition).
public class CardAction
type CardAction = class
Public Class CardAction
- Inheritance
-
CardAction
- Derived
Card |
Initializes a new instance of CardAction. |
Card |
Initializes a new instance of CardAction. |
Channel |
Channel-specific data associated with this action. |
Display |
(Optional) text to display in the chat feed if the button is clicked. |
Image |
Image URL which will appear on the button, next to text label. |
Image |
Alternate text to be used for the Image property. |
Text |
Text for this action. |
Title |
Text description which appears on the button. |
Type |
Defines action types for clickable buttons. See ActionTypes. |
Value |
Supplementary parameter for action. Content of this property depends on the ActionType. |
From |
Creates a CardAction from the given input. |
Implicit(String to Card |
Implicit conversion of string to CardAction to simplify creation of CardActions with string values. |
Product | Versions |
---|---|
Microsoft 365 Agents SDK .NET | 1 |