IAttachments.GetAttachmentWithHttpMessagesAsync Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
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))
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
Zadanie reprezentujące pracę w kolejce do wykonania.
Wyjątki
Zrzucano, gdy operacja zwracała nieprawidłowy kod statusu.
Zrzucony, gdy nie mogę odtworzyć odpowiedzi.
Rzucane, gdy wymagany parametr jest null.
Uwagi
Pobierz nazwany widok jako zawartość binarną.