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

MockAdlsClient.GetDirectoryEntryAsync 方法

定义

获取目录或文件信息

public override System.Threading.Tasks.Task<Microsoft.Azure.DataLake.Store.DirectoryEntry> GetDirectoryEntryAsync (string path, Microsoft.Azure.DataLake.Store.UserGroupRepresentation userIdFormat = Microsoft.Azure.DataLake.Store.UserGroupRepresentation.ObjectID, System.Threading.CancellationToken cancelToken = default);
override this.GetDirectoryEntryAsync : string * Microsoft.Azure.DataLake.Store.UserGroupRepresentation * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.DataLake.Store.DirectoryEntry>
Public Overrides Function GetDirectoryEntryAsync (path As String, Optional userIdFormat As UserGroupRepresentation = Microsoft.Azure.DataLake.Store.UserGroupRepresentation.ObjectID, Optional cancelToken As CancellationToken = Nothing) As Task(Of DirectoryEntry)

参数

path
String

文件或目录的路径

userIdFormat
UserGroupRepresentation

用户或组 ID 格式

cancelToken
CancellationToken

取消令牌

返回

适用于