Język

Attachments.GetAttachmentWithHttpMessagesAsync Metoda

Definicja

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>>
override this.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))

Parametry

attachmentId
String

ID załącznika.

viewId
String

Zobacz ID z attachmentInfo.

customHeaders
Dictionary<String,List<String>>

Nagłówki, które zostaną dodane do żądania.

cancellationToken
CancellationToken

Token anulowania.

Zwraca

Task<Microsoft.Rest.HttpOperationResponse<Stream>>

Obiekt odpowiedzi zawierający ciało odpowiedzi oraz nagłówki odpowiedzi.

Implementuje

Wyjątki

Zrzucano, gdy operacja zwracała nieprawidłowy kod statusu.

Microsoft.Rest.SerializationException

Zrzucony, gdy nie mogę odtworzyć odpowiedzi.

Microsoft.Rest.ValidationException

Rzuca się, gdy wartość wejściowa nie odpowiada oczekiwanemu typowi danych, zakresowi lub wzorcowi pola danych.

Rzucane, gdy wymagany parametr jest null.

Uwagi

Pobierz nazwany widok jako zawartość binarną.

Dotyczy