共用方式為


ChannelServiceHandlerBase.HandleUploadAttachmentAsync 方法

定義

在處理企業時,將資料儲存在符合規範的存放區中。

public System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse> HandleUploadAttachmentAsync (string authHeader, string conversationId, Microsoft.Bot.Schema.AttachmentData attachmentUpload, System.Threading.CancellationToken cancellationToken = default);
member this.HandleUploadAttachmentAsync : string * string * Microsoft.Bot.Schema.AttachmentData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse>
Public Function HandleUploadAttachmentAsync (authHeader As String, conversationId As String, attachmentUpload As AttachmentData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)

參數

authHeader
String

驗證標頭。

conversationId
String

交談識別碼。

attachmentUpload
AttachmentData

附件資料。

cancellationToken
CancellationToken

取消語彙基元,可由其他物件或執行緒用來接收取消通知。

傳回

Task<TResult> 表示非同步作業的結果。

適用於