次の方法で共有


ConversationsExtensions.UploadAttachmentAsync メソッド

定義

オーバーロード

UploadAttachmentAsync(IConversations, String, AttachmentData, CancellationToken)
UploadAttachmentAsync(IConversations, String, AttachmentData, CancellationToken)

UploadAttachment。

UploadAttachmentAsync(IConversations, String, AttachmentData, CancellationToken)

public static System.Threading.Tasks.Task<Microsoft.Bot.Connector.ResourceResponse> UploadAttachmentAsync (this Microsoft.Bot.Connector.IConversations operations, string conversationId, Microsoft.Bot.Connector.AttachmentData attachmentUpload, System.Threading.CancellationToken cancellationToken = default);
static member UploadAttachmentAsync : Microsoft.Bot.Connector.IConversations * string * Microsoft.Bot.Connector.AttachmentData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.ResourceResponse>
<Extension()>
Public Function UploadAttachmentAsync (operations As IConversations, conversationId As String, attachmentUpload As AttachmentData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)

パラメーター

operations
IConversations
conversationId
String
attachmentUpload
AttachmentData
cancellationToken
CancellationToken

戻り値

適用対象

UploadAttachmentAsync(IConversations, String, AttachmentData, CancellationToken)

UploadAttachment。

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

パラメーター

operations
IConversations

この拡張メソッドの操作グループ。

conversationId
String

会話 ID。

attachmentUpload
AttachmentData

添付ファイル データ。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

ResourceResponse

注釈

チャネルの BLOB ストレージに添付ファイルを直接アップロードします。

これは、企業を扱うときに準拠ストアにデータを格納できるため便利です。

応答は ResourceResponse であり、AttachmentId が含まれており、添付ファイル API での 使用に適しています。

適用対象