Freigeben über


ConversationsExtensions.UploadAttachmentAsync Methode

Definition

Überlädt

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)

Parameter

operations
IConversations
conversationId
String
attachmentUpload
AttachmentData
cancellationToken
CancellationToken

Gibt zurück

Gilt 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)

Parameter

operations
IConversations

Die Vorgangsgruppe für diese Erweiterungsmethode.

conversationId
String

Konversations-ID.

attachmentUpload
AttachmentData

Anlagendaten.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Das ResourceResponse.

Hinweise

Laden Sie eine Anlage direkt in den Blobspeicher eines Kanals hoch.

Dies ist nützlich, da sie es Ihnen ermöglicht, Daten in einem konformen Speicher zu speichern, wenn Sie mit Unternehmen arbeiten.

Die Antwort ist eine ResourceResponse, die eine AttachmentId enthält, die für die Verwendung mit der Attachments-API geeignet ist.

Gilt für: