Partager via


ConversationsExtensions.UploadAttachmentAsync Méthode

Définition

Surcharges

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)

Paramètres

operations
IConversations
conversationId
String
attachmentUpload
AttachmentData
cancellationToken
CancellationToken

Retours

S’applique à

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)

Paramètres

operations
IConversations

Groupe d’opérations pour cette méthode d’extension.

conversationId
String

ID de conversation.

attachmentUpload
AttachmentData

Données de pièce jointe.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

Le ResourceResponse.

Remarques

Chargez une pièce jointe directement dans le stockage d’objets blob d’un canal.

Cela est utile, car il vous permet de stocker des données dans un magasin conforme lorsque vous traitez avec des entreprises.

La réponse est une ResourceResponse qui contient un AttachmentId qui peut être utilisé avec l’API pièces jointes.

S’applique à