共用方式為


HttpResponseDataExtensions.WriteBytesAsync 方法

定義

多載

WriteBytesAsync(HttpResponseData, Byte[])

以非同步方式將提供的位元組寫入回應本文。

WriteBytesAsync(HttpResponseData, Byte[], CancellationToken)

以非同步方式將提供的位元組寫入回應本文,並監視取消要求。

WriteBytesAsync(HttpResponseData, Byte[])

來源:
HttpResponseDataExtensions.cs

以非同步方式將提供的位元組寫入回應本文。

public static System.Threading.Tasks.Task WriteBytesAsync (this Microsoft.Azure.Functions.Worker.Http.HttpResponseData response, byte[] value);
static member WriteBytesAsync : Microsoft.Azure.Functions.Worker.Http.HttpResponseData * byte[] -> System.Threading.Tasks.Task
<Extension()>
Public Function WriteBytesAsync (response As HttpResponseData, value As Byte()) As Task

參數

response
HttpResponseData

要寫入字串的回應。

value
Byte[]

要寫入要求本文的位元組內容。

傳回

代表非同步作業的 Task

適用於

WriteBytesAsync(HttpResponseData, Byte[], CancellationToken)

來源:
HttpResponseDataExtensions.cs

以非同步方式將提供的位元組寫入回應本文,並監視取消要求。

public static System.Threading.Tasks.Task WriteBytesAsync (this Microsoft.Azure.Functions.Worker.Http.HttpResponseData response, byte[] value, System.Threading.CancellationToken cancellationToken);
static member WriteBytesAsync : Microsoft.Azure.Functions.Worker.Http.HttpResponseData * byte[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function WriteBytesAsync (response As HttpResponseData, value As Byte(), cancellationToken As CancellationToken) As Task

參數

response
HttpResponseData

要寫入字串的回應。

value
Byte[]

要寫入要求本文的位元組內容。

cancellationToken
CancellationToken

用來監視是否有取消要求的語彙基元。

傳回

代表非同步作業的 Task

適用於