Delen via


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

bijlage-id.

viewId
String

Bekijk de id van attachmentInfo.

customHeaders
Dictionary<String,List<String>>

De headers die aan de aanvraag 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

Gegenereerd wanneer de bewerking een ongeldige statuscode heeft geretourneerd.

Microsoft.Rest.SerializationException

Gegenereerd wanneer het antwoord niet kan worden gedeserialiseerd.

Microsoft.Rest.ValidationException

Gegenereerd wanneer een vereiste parameter null is.

Opmerkingen

Haal de benoemde weergave op als binaire inhoud.

Van toepassing op