Udostępnij za pośrednictwem


IAttachments.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>>
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

identyfikator załącznika.

viewId
String

Wyświetl identyfikator z pliku attachmentInfo.

customHeaders
Dictionary<String,List<String>>

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

cancellationToken
CancellationToken

Token anulowania.

Zwraca

Task<Microsoft.Rest.HttpOperationResponse<Stream>>

Zadanie reprezentujące pracę w kolejce do wykonania.

Wyjątki

Zgłaszany, gdy operacja zwróciła nieprawidłowy kod stanu.

Microsoft.Rest.SerializationException

Zgłaszany, gdy nie można wykonać deserializacji odpowiedzi.

Microsoft.Rest.ValidationException

Zgłaszany, gdy wymagany parametr ma wartość null.

Uwagi

Pobierz nazwany widok jako zawartość binarną.

Dotyczy