語言

IAttachments.GetAttachmentWithHttpMessagesAsync 方法

定義

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

參數

attachmentId
String

附件ID。

viewId
String

從附件資訊中查看ID。

customHeaders
Dictionary<String,List<String>>

請求時會新增的標頭。

cancellationToken
CancellationToken

取消權杖。

傳回

Task<Microsoft.Rest.HttpOperationResponse<Stream>>

工作,表示要執行的工作佇列。

例外狀況

當操作回傳無效狀態碼時會丟棄。

Microsoft.Rest.SerializationException

當無法解序化回應時會丟棄。

Microsoft.Rest.ValidationException

當所需參數為空時會拋出。

備註

取得具名檢視做為二進位內容。

適用於