MessageFactory.Attachment 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| Attachment(Attachment, String, String, String) |
傳回包含附件的訊息活動。 |
| Attachment(IEnumerable<Attachment>, String, String, String) |
傳回訊息活動,其中包含清單中的附件集合。 |
Attachment(Attachment, String, String, String)
傳回包含附件的訊息活動。
public static Microsoft.Bot.Schema.IMessageActivity Attachment(Microsoft.Bot.Schema.Attachment attachment, string text = default, string ssml = default, string inputHint = default);
static member Attachment : Microsoft.Bot.Schema.Attachment * string * string * string -> Microsoft.Bot.Schema.IMessageActivity
Public Shared Function Attachment (attachment As Attachment, Optional text As String = Nothing, Optional ssml As String = Nothing, Optional inputHint As String = Nothing) As IMessageActivity
參數
- attachment
- Attachment
要包含在郵件中的附件。
- text
- String
選擇性的訊息要傳送的文字。
- ssml
- String
選擇性的文字,由 Bot 在啟用語音功能的通道上說出。
- inputHint
- String
選擇性表示 Bot 在訊息傳遞至客戶端之後是否接受、預期或忽略使用者輸入。 其中一個:「acceptingInput」、“ignoringInput” 或 “expectingInput”。 預設值為 「acceptingInput」。。
傳回
包含附件的郵件活動。
例外狀況
attachment 是 null。
另請參閱
- Carousel(IEnumerable<Attachment>, String, String, String)
- Attachment(IEnumerable<Attachment>, String, String, String)
適用於
Attachment(IEnumerable<Attachment>, String, String, String)
傳回訊息活動,其中包含清單中的附件集合。
public static Microsoft.Bot.Schema.IMessageActivity Attachment(System.Collections.Generic.IEnumerable<Microsoft.Bot.Schema.Attachment> attachments, string text = default, string ssml = default, string inputHint = default);
static member Attachment : seq<Microsoft.Bot.Schema.Attachment> * string * string * string -> Microsoft.Bot.Schema.IMessageActivity
Public Shared Function Attachment (attachments As IEnumerable(Of Attachment), Optional text As String = Nothing, Optional ssml As String = Nothing, Optional inputHint As String = Nothing) As IMessageActivity
參數
- attachments
- IEnumerable<Attachment>
訊息中要附上的附件。
- text
- String
選擇性的訊息要傳送的文字。
- ssml
- String
選擇性的文字,由 Bot 在啟用語音功能的通道上說出。
- inputHint
- String
選擇性表示 Bot 在訊息傳遞至客戶端之後是否接受、預期或忽略使用者輸入。 其中一個:「acceptingInput」、“ignoringInput” 或 “expectingInput”。 預設值為 「acceptingInput」。。
傳回
包含附件的郵件活動。
例外狀況
attachments 是 null。
另請參閱
- Attachment(Attachment, String, String, String)
- Carousel(IEnumerable<Attachment>, String, String, String)