ChannelServiceHandlerBase.OnUploadAttachmentAsync Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
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.