Delen via


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 moet AudienceClaim, AppIdClaim en ServiceUrlClaim hebben.

conversationId
String

Gespreks-id.

attachmentUpload
AttachmentData

Bijlagegegevens.

cancellationToken
CancellationToken

Het annuleringstoken.

Retouren

taak met resultaat.

Opmerkingen

Overschrijf deze methode om gegevens op te slaan 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