CardAction 類別

定義

可點選的動作。

public class CardAction
type CardAction = class
Public Class CardAction
繼承
CardAction
衍生

建構函式

CardAction()

初始化 CardAction 類別的新執行個體。

CardAction(String, String, String, String, String, Object, Object)

初始化 CardAction 類別的新執行個體。

屬性

ChannelData

取得或設定與此動作相關聯的通道特定資料。

DisplayText

取得或設定 (按一下按鈕時,要在聊天摘要中顯示的選擇性) 文字。

Image

取得或設定顯示在文字標籤旁按鈕上的影像 URL。

ImageAltText

取得或設定要用於 Image 屬性的替代文字。

Text

取得或設定這個動作的文字。

Title

取得或設定出現在按鈕上的文字描述。

Type

取得或設定這個按鈕所實作的動作類型。 可能的值包括:'openUrl'、'imBack'、'postBack'、'playAudio'、'playVideo'、'showImage'、'downloadFile'、'signin'、'call'、'messageBack'。

Value

取得或設定動作的增補參數。 此屬性的內容取決於 ActionType。

方法

FromString(String)

CardAction從指定的輸入建立 。

運算子

Implicit(String to CardAction)

將字串隱含轉換成 CardAction,以簡化使用字串值的 CardActions 建立。

適用於