Sprache

IAttachments.GetAttachmentWithHttpMessagesAsync Methode

Definition

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

Parameter

attachmentId
String

Anhängungs-ID.

viewId
String

ID aus AttachmentInfo.

customHeaders
Dictionary<String,List<String>>

Die Header, die auf Anfrage hinzugefügt werden.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Task<Microsoft.Rest.HttpOperationResponse<Stream>>

Eine Aufgabe, die die auszuführende Arbeitswarteschlange darstellt.

Ausnahmen

Geworfen, wenn die Operation einen ungültigen Statuscode zurückgab.

Microsoft.Rest.SerializationException

Geworfen, wenn man die Reaktion nicht entwerten kann.

Microsoft.Rest.ValidationException

Wird geworfen, wenn ein erforderlicher Parameter null ist.

Hinweise

Rufen Sie die benannte Ansicht als binären Inhalt ab.

Gilt für: