你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AdlsClient.GetAppendStreamAsync(String, CancellationToken) 方法

定义

异步 API,用于返回流以将数据写入 ADLS 中的文件。 文件以独占访问权限打开 - 打开此流时,任何尝试打开同一个文件进行追加都将失败。

线程处理:返回的流不是线程安全的。

public virtual System.Threading.Tasks.Task<Microsoft.Azure.DataLake.Store.AdlsOutputStream> GetAppendStreamAsync(string filename, System.Threading.CancellationToken cancelToken = default);
abstract member GetAppendStreamAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.DataLake.Store.AdlsOutputStream>
override this.GetAppendStreamAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.DataLake.Store.AdlsOutputStream>
Public Overridable Function GetAppendStreamAsync (filename As String, Optional cancelToken As CancellationToken = Nothing) As Task(Of AdlsOutputStream)

参数

filename
String

文件名

cancelToken
CancellationToken

取消取消请求的 CancellationToken

返回

输出流

适用于