AttachmentPayload 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
The Bot Framework Adapters will be deprecated in the next version of the Bot Framework SDK and moved to https://github.com/BotBuilderCommunity/botbuilder-community-dotnet. Please refer to their new location for all future work.
可作為 Facebook 附件一部分傳送的內部 Facebook 附件。
[System.Obsolete("The Bot Framework Adapters will be deprecated in the next version of the Bot Framework SDK and moved to https://github.com/BotBuilderCommunity/botbuilder-community-dotnet. Please refer to their new location for all future work.")]
public class AttachmentPayload
[<System.Obsolete("The Bot Framework Adapters will be deprecated in the next version of the Bot Framework SDK and moved to https://github.com/BotBuilderCommunity/botbuilder-community-dotnet. Please refer to their new location for all future work.")>]
type AttachmentPayload = class
Public Class AttachmentPayload
- 繼承
-
AttachmentPayload
- 屬性
建構函式
| 名稱 | Description |
|---|---|
| AttachmentPayload() |
已淘汰.
可作為 Facebook 附件一部分傳送的內部 Facebook 附件。 |
屬性
| 名稱 | Description |
|---|---|
| AttachmentId |
已淘汰.
取得或設定附件的 ID(針對可重複使用的附件)。 |
| Buttons |
已淘汰.
會拿到範本的按鈕清單。 |
| Elements |
已淘汰.
會獲得範本的媒體元素清單。 |
| IsReusable |
已淘汰.
取得或設定一個值,表示該附件是否可重複使用。 默認值 false。 |
| TemplateType |
已淘汰.
取得或設定所附模板的類型。 |
| Text |
已淘汰.
取得或設定範本的文字。 |
| Url |
已淘汰.
取得或設定附件的網址。 |
方法
| 名稱 | Description |
|---|---|
| ShouldSerializeButtons() |
已淘汰.
Newtonsoft JSON 方法用於條件序列化該 Buttons 屬性。 |
| ShouldSerializeElements() |
已淘汰.
Newtonsoft JSON 方法用於條件序列化該 Elements 屬性。 |
| ShouldSerializeIsReusable() |
已淘汰.
Newtonsoft JSON 方法用於條件序列化該 IsReusable 屬性。 |