Lenguaje

AttachmentsExtensions.GetAttachmentAsync Método

Definición

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)

Parámetros

operations
IAttachments

El grupo de operaciones para este método de extensión.

attachmentId
String

ID de adjunto.

viewId
String

Ver id desde AdjuntoInfo.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Task<Byte[]>

El apego como un arroyo.

Comentarios

Obtenga la vista con nombre como contenido binario.

Se aplica a