Attachments.GetAttachmentWithHttpMessagesAsync Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
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
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.
Vyvolána, když nelze odpověď deserializovat.
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.