Taal

ChannelServiceHandlerBase.OnUploadAttachmentAsync Methode

Definitie

UploadAttachment() API.

protected virtual System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse> OnUploadAttachmentAsync(System.Security.Claims.ClaimsIdentity claimsIdentity, string conversationId, Microsoft.Bot.Schema.AttachmentData attachmentUpload, System.Threading.CancellationToken cancellationToken = default);
abstract member OnUploadAttachmentAsync : System.Security.Claims.ClaimsIdentity * string * Microsoft.Bot.Schema.AttachmentData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse>
override this.OnUploadAttachmentAsync : System.Security.Claims.ClaimsIdentity * string * Microsoft.Bot.Schema.AttachmentData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse>
Protected Overridable Function OnUploadAttachmentAsync (claimsIdentity As ClaimsIdentity, conversationId As String, attachmentUpload As AttachmentData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)

Parameters

claimsIdentity
ClaimsIdentity

claimsIdentity voor de bot, zou AudienceClaim, AppIdClaim en ServiceUrlClaim moeten bevatten.

conversationId
String

Gespreks-id.

attachmentUpload
AttachmentData

Bijlagegegevens.

cancellationToken
CancellationToken

Het annuleringstoken.

Retouren

taak met resultaat.

Opmerkingen

Overrul deze methode om gegevens op te slaan in een compliant opslag bij het werken met bedrijven.

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

Van toepassing op