Dela via


ConversationsExtensions.UploadAttachmentAsync Metod

Definition

Överlagringar

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)

Parametrar

operations
IConversations
conversationId
String
attachmentUpload
AttachmentData
cancellationToken
CancellationToken

Returer

Gäller för

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)

Parametrar

operations
IConversations

Åtgärdsgruppen för den här tilläggsmetoden.

conversationId
String

Konversations-ID.

attachmentUpload
AttachmentData

Bifogade filer.

cancellationToken
CancellationToken

Annulleringstoken.

Returer

ResourceResponse.

Kommentarer

Ladda upp en bifogad fil direkt till en kanals bloblagring.

Detta är användbart eftersom du kan lagra data i ett kompatibelt lager när du hanterar företag.

Svaret är ett ResourceResponse som innehåller ett AttachmentId som är lämpligt för användning med API:et för bifogade filer.

Gäller för