BasicCard 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
BasicCard() |
初始化 BasicCard 類別的新執行個體。 |
BasicCard(String, String, String, IList<CardImage>, IList<CardAction>, CardAction) |
初始化 BasicCard 類別的新執行個體。 |
BasicCard()
BasicCard(String, String, String, IList<CardImage>, IList<CardAction>, CardAction)
初始化 BasicCard 類別的新執行個體。
public BasicCard (string title = default, string subtitle = default, string text = default, System.Collections.Generic.IList<Microsoft.Bot.Schema.CardImage> images = default, System.Collections.Generic.IList<Microsoft.Bot.Schema.CardAction> buttons = default, Microsoft.Bot.Schema.CardAction tap = default);
new Microsoft.Bot.Schema.BasicCard : string * string * string * System.Collections.Generic.IList<Microsoft.Bot.Schema.CardImage> * System.Collections.Generic.IList<Microsoft.Bot.Schema.CardAction> * Microsoft.Bot.Schema.CardAction -> Microsoft.Bot.Schema.BasicCard
Public Sub New (Optional title As String = Nothing, Optional subtitle As String = Nothing, Optional text As String = Nothing, Optional images As IList(Of CardImage) = Nothing, Optional buttons As IList(Of CardAction) = Nothing, Optional tap As CardAction = Nothing)
參數
- title
- String
資訊卡的標題。
- subtitle
- String
卡片的副標題。
- text
- String
卡片的文字。
- buttons
- IList<CardAction>
適用于目前卡片的一組動作。
- tap
- CardAction
當使用者點選卡片本身時,將會啟用此動作。