Compartilhar via


AttachmentsExtensions.GetAttachmentAsync Método

Definição

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

O grupo de operações para esse método de extensão.

attachmentId
String

ID do anexo.

viewId
String

Exibir id de attachmentInfo.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Task<Byte[]>

O anexo como um Stream.

Comentários

Obtenha a exibição nomeada como conteúdo binário.

Aplica-se a