HttpResponseDataExtensions.WriteBytesAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
WriteBytesAsync(HttpResponseData, Byte[]) |
以非同步方式將提供的位元組寫入回應本文。 |
WriteBytesAsync(HttpResponseData, Byte[], CancellationToken) |
以非同步方式將提供的位元組寫入回應本文,並監視取消要求。 |
WriteBytesAsync(HttpResponseData, Byte[])
以非同步方式將提供的位元組寫入回應本文。
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)
以非同步方式將提供的位元組寫入回應本文,並監視取消要求。
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。