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

AdlsClient.CreateDirectoryAsync(String, String, CancellationToken) 方法

定义

用于创建目录的异步 API。

public virtual System.Threading.Tasks.Task<bool> CreateDirectoryAsync (string dirName, string octalPermission = default, System.Threading.CancellationToken cancelToken = default);
abstract member CreateDirectoryAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.CreateDirectoryAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overridable Function CreateDirectoryAsync (dirName As String, Optional octalPermission As String = Nothing, Optional cancelToken As CancellationToken = Nothing) As Task(Of Boolean)

参数

dirName
String

目录的名称

octalPermission
String

八进制权限

cancelToken
CancellationToken

CancellationToken 取消请求

返回

如果创建目录,则为 true,否则为 false

适用于