共用方式為


MessageFactory.Attachment 方法

定義

多載

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」。

傳回

包含附件的郵件活動。

例外狀況

attachmentnull

另請參閱

適用於

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」。

傳回

包含附件的郵件活動。

例外狀況

attachmentsnull

另請參閱

適用於