Partager via


AttachmentsExtensions.GetAttachmentAsync Méthode

Définition

GetAttachment.

public static System.Threading.Tasks.Task<byte[]> GetAttachmentAsync (this Microsoft.Bot.Connector.IAttachments operations, string attachmentId, string viewId, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<System.IO.Stream> GetAttachmentAsync (this Microsoft.Bot.Connector.IAttachments operations, string attachmentId, string viewId, System.Threading.CancellationToken cancellationToken = default);
static member GetAttachmentAsync : Microsoft.Bot.Connector.IAttachments * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<byte[]>
static member GetAttachmentAsync : Microsoft.Bot.Connector.IAttachments * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
<Extension()>
Public Function GetAttachmentAsync (operations As IAttachments, attachmentId As String, viewId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Byte())
<Extension()>
Public Function GetAttachmentAsync (operations As IAttachments, attachmentId As String, viewId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Stream)

Paramètres

operations
IAttachments

Groupe d’opérations pour cette méthode d’extension.

attachmentId
String

id de pièce jointe.

viewId
String

Afficher l’ID de attachmentInfo.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

Task<Byte[]>

Pièce jointe sous forme de flux.

Remarques

Obtenez la vue nommée sous forme de contenu binaire.

S’applique à