CardAction Constructors
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.
Overloads
CardAction() |
Initializes a new instance of the CardAction class. |
CardAction(String, String, String, String, String, Object, Object) |
Initializes a new instance of the CardAction class. |
CardAction()
Initializes a new instance of the CardAction class.
public CardAction ();
Public Sub New ()
Applies to
CardAction(String, String, String, String, String, Object, Object)
Initializes a new instance of the CardAction class.
public CardAction (string type = default, string title = default, string image = default, string text = default, string displayText = default, object value = default, object channelData = default);
new Microsoft.Bot.Schema.CardAction : string * string * string * string * string * obj * obj -> Microsoft.Bot.Schema.CardAction
Public Sub New (Optional type As String = Nothing, Optional title As String = Nothing, Optional image As String = Nothing, Optional text As String = Nothing, Optional displayText As String = Nothing, Optional value As Object = Nothing, Optional channelData As Object = Nothing)
Parameters
- type
- String
The type of action implemented by this button. Possible values include: 'openUrl', 'imBack', 'postBack', 'playAudio', 'playVideo', 'showImage', 'downloadFile', 'signin', 'call', 'messageBack', 'openApp'.
- title
- String
Text description which appears on the button.
- image
- String
Image URL which will appear on the button, next to text label.
- text
- String
Text for this action.
- displayText
- String
(Optional) text to display in the chat feed if the button is clicked.
- value
- Object
Supplementary parameter for action. Content of this property depends on the ActionType.
- channelData
- Object
Channel-specific data associated with this action.