Compartilhar via


ConversationsExtensions.UploadAttachmentAsync Método

Definição

Sobrecargas

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)

Parâmetros

operations
IConversations
conversationId
String
attachmentUpload
AttachmentData
cancellationToken
CancellationToken

Retornos

Aplica-se a

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)

Parâmetros

operations
IConversations

O grupo de operações para esse método de extensão.

conversationId
String

ID da conversa.

attachmentUpload
AttachmentData

Dados do anexo.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

O ResourceResponse.

Comentários

Carregue um anexo diretamente no armazenamento de blobs de um canal.

Isso é útil porque permite armazenar dados em um repositório em conformidade ao lidar com empresas.

A resposta é um ResourceResponse que contém um AttachmentId que é adequado para uso com a API de anexos.

Aplica-se a