Sdílet prostřednictvím


IAttachments.GetAttachmentWithHttpMessagesAsync Metoda

Definice

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 přílohy.

viewId
String

ID zobrazení z attachmentInfo.

customHeaders
Dictionary<String,List<String>>

Hlavičky, které se přidají do požadavku.

cancellationToken
CancellationToken

Token zrušení.

Návraty

Task<Microsoft.Rest.HttpOperationResponse<Stream>>

Úloha, která představuje práci zařazenou do fronty k provedení.

Výjimky

Vyvolá se, když operace vrátila neplatný stavový kód.

Microsoft.Rest.SerializationException

Vyvolána, když nelze odpověď deserializovat.

Microsoft.Rest.ValidationException

Vyvolá se, pokud má povinný parametr hodnotu null.

Poznámky

Získá pojmenované zobrazení jako binární obsah.

Platí pro