Delen via


IConversations.UploadAttachmentWithHttpMessagesAsync Methode

Definitie

Overloads

UploadAttachmentWithHttpMessagesAsync(String, AttachmentData, Dictionary<String,List<String>>, CancellationToken)
UploadAttachmentWithHttpMessagesAsync(String, AttachmentData, Dictionary<String,List<String>>, CancellationToken)

UploadAttachment.

UploadAttachmentWithHttpMessagesAsync(String, AttachmentData, Dictionary<String,List<String>>, CancellationToken)

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Connector.ResourceResponse>> UploadAttachmentWithHttpMessagesAsync (string conversationId, Microsoft.Bot.Connector.AttachmentData attachmentUpload, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UploadAttachmentWithHttpMessagesAsync : string * Microsoft.Bot.Connector.AttachmentData * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Connector.ResourceResponse>>
Public Function UploadAttachmentWithHttpMessagesAsync (conversationId As String, attachmentUpload As AttachmentData, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of ResourceResponse))

Parameters

conversationId
String
attachmentUpload
AttachmentData
customHeaders
Dictionary<String,List<String>>
cancellationToken
CancellationToken

Retouren

Task<Microsoft.Rest.HttpOperationResponse<ResourceResponse>>

Van toepassing op

UploadAttachmentWithHttpMessagesAsync(String, AttachmentData, Dictionary<String,List<String>>, CancellationToken)

UploadAttachment.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Schema.ResourceResponse>> UploadAttachmentWithHttpMessagesAsync (string conversationId, Microsoft.Bot.Schema.AttachmentData attachmentUpload, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UploadAttachmentWithHttpMessagesAsync : string * Microsoft.Bot.Schema.AttachmentData * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Schema.ResourceResponse>>
Public Function UploadAttachmentWithHttpMessagesAsync (conversationId As String, attachmentUpload As AttachmentData, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of ResourceResponse))

Parameters

conversationId
String

Gespreks-id.

attachmentUpload
AttachmentData

Bijlagegegevens.

customHeaders
Dictionary<String,List<String>>

De headers die aan de aanvraag worden toegevoegd.

cancellationToken
CancellationToken

Het annuleringstoken.

Retouren

Task<Microsoft.Rest.HttpOperationResponse<ResourceResponse>>

Een taak die de Microsoft.Rest.HttpOperationResponsevertegenwoordigt.

Uitzonderingen

Gegenereerd toen de bewerking een ongeldige statuscode retourneerde.

Microsoft.Rest.SerializationException

Gegenereerd wanneer het antwoord niet kan worden gedeserialiseerd.

Microsoft.Rest.ValidationException

Gegenereerd wanneer een vereiste parameter null is.

Opmerkingen

Upload een bijlage rechtstreeks naar de blobopslag van een kanaal.

Dit is handig omdat u hiermee gegevens kunt opslaan in een compatibele opslag wanneer u te maken hebt met ondernemingen.

Het antwoord is een ResourceResponse die een AttachmentId bevat die geschikt is voor gebruik met de api voor bijlagen.

Van toepassing op