Sdílet prostřednictvím


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

viewId
String

ID zobrazení z attachmentInfo.

customHeaders
Dictionary<String,List<String>>

Hlavičky, které budou přidány do požadavku.

cancellationToken
CancellationToken

Token zrušení.

Návraty

Task<Microsoft.Rest.HttpOperationResponse<Stream>>

Objekt odpovědi obsahující tělo odpovědi a hlavičky odpovědi.

Implementuje

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, když vstupní hodnota neodpovídá očekávanému datovému typu, rozsahu nebo vzoru datového pole.

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

Poznámky

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

Platí pro