Idioma

IAttachments.GetAttachmentWithHttpMessagesAsync Método

Definição

GetAttachment.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<System.IO.Stream>> GetAttachmentWithHttpMessagesAsync(string attachmentId, string viewId, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAttachmentWithHttpMessagesAsync : string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<System.IO.Stream>>
Public Function GetAttachmentWithHttpMessagesAsync (attachmentId As String, viewId As String, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of Stream))

Parâmetros

attachmentId
String

ID do anexo.

viewId
String

Ver id a partir do anexoInfo.

customHeaders
Dictionary<String,List<String>>

Os cabeçalhos que serão adicionados ao pedido.

cancellationToken
CancellationToken

O token de cancelamento.

Devoluções

Task<Microsoft.Rest.HttpOperationResponse<Stream>>

Uma tarefa que representa o trabalho enfileirado para ser executado.

Exceções

Foi lançado quando a operação devolveu um código de estado inválido.

Microsoft.Rest.SerializationException

Lançado quando não é possível desserializar a resposta.

Microsoft.Rest.ValidationException

Lançado quando um parâmetro exigido é nulo.

Observações

Obtenha o modo de exibição nomeado como conteúdo binário.

Aplica-se a