Taal

IAttachments.GetAttachmentWithHttpMessagesAsync Methode

Definitie

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))

Parameters

attachmentId
String

Hechtings-ID.

viewId
String

Bekijk de ID van attachmentInfo.

customHeaders
Dictionary<String,List<String>>

De headers die op verzoek worden toegevoegd.

cancellationToken
CancellationToken

Het annuleringstoken.

Retouren

Task<Microsoft.Rest.HttpOperationResponse<Stream>>

Een taak die het werk vertegenwoordigt dat in de wachtrij staat om uit te voeren.

Uitzonderingen

Wordt gegooid wanneer de operatie een ongeldige statuscode teruggeeft.

Microsoft.Rest.SerializationException

Ze worden weggegooid als je de reactie niet kan verwoorden.

Microsoft.Rest.ValidationException

Wordt gegooid wanneer een vereiste parameter null is.

Opmerkingen

Haal de benoemde weergave op als binaire inhoud.

Van toepassing op