你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Core.ConcurrentAppendAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在服务器上异步执行并发追加。 将发生追加的偏移量由服务器确定
public static System.Threading.Tasks.Task ConcurrentAppendAsync(string path, bool autoCreate, byte[] dataBytes, int offset, int length, Microsoft.Azure.DataLake.Store.AdlsClient client, Microsoft.Azure.DataLake.Store.RequestOptions req, Microsoft.Azure.DataLake.Store.OperationResponse resp, System.Threading.CancellationToken cancelToken = default);
static member ConcurrentAppendAsync : string * bool * byte[] * int * int * Microsoft.Azure.DataLake.Store.AdlsClient * Microsoft.Azure.DataLake.Store.RequestOptions * Microsoft.Azure.DataLake.Store.OperationResponse * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Shared Function ConcurrentAppendAsync (path As String, autoCreate As Boolean, dataBytes As Byte(), offset As Integer, length As Integer, client As AdlsClient, req As RequestOptions, resp As OperationResponse, Optional cancelToken As CancellationToken = Nothing) As Task
参数
- path
- String
文件的路径
- autoCreate
- Boolean
- dataBytes
- Byte[]
要写入文件的字节数组
- offset
- Int32
字节数组中的偏移量
- length
- Int32
要从偏移量写入的字节数
- client
- AdlsClient
ADLS 客户端
- req
- RequestOptions
用于更改 Http 请求行为的选项
- resp
- OperationResponse
存储 Http 请求的响应/输出
- cancelToken
- CancellationToken
取消取消请求的 CancellationToken