Freigeben über


ChannelServiceHandlerBase.HandleUploadAttachmentAsync Methode

Definition

Speichert Daten in einem konformen Speicher, wenn es um Unternehmen geht.

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)

Parameter

authHeader
String

Der Authentifizierungsheader.

conversationId
String

Die Unterhaltungs-ID.

attachmentUpload
AttachmentData

Anlagendaten.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um Nachricht vom Abbruch zu empfangen.

Gibt zurück

Ein Task<TResult> , der das Ergebnis des asynchronen Vorgangs darstellt.

Gilt für: