ConversationsExtensions.UploadAttachmentAsync Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
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)
Parametri
- operations
- IConversations
- conversationId
- String
- attachmentUpload
- AttachmentData
- cancellationToken
- CancellationToken
Restituisce
Si applica a
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)
Parametri
- operations
- IConversations
Gruppo di operazioni per questo metodo di estensione.
- conversationId
- String
ID conversazione.
- attachmentUpload
- AttachmentData
Dati allegati.
- cancellationToken
- CancellationToken
Token di annullamento.
Restituisce
Oggetto ResourceResponse.
Commenti
Caricare un allegato direttamente nell'archivio BLOB di un canale.
Ciò è utile perché consente di archiviare i dati in un archivio conforme quando si gestiscono le aziende.
La risposta è resourceResponse che contiene un AttachmentId adatto per l'uso con l'API allegati.