Partilhar via


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 de attachmentInfo.

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 em fila de trabalho a executar.

Exceções

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

Microsoft.Rest.SerializationException

Emitido quando não é possível anular a serialização da resposta.

Microsoft.Rest.ValidationException

Emitido quando um parâmetro necessário é nulo.

Observações

Obtenha a vista nomeada como conteúdo binário.

Aplica-se a