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

Core.ListStatusAsync 方法

定义

列出目录中包含的子目录或文件

public static System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.Azure.DataLake.Store.DirectoryEntry>> ListStatusAsync (string path, string listAfter, string listBefore, int listSize, Microsoft.Azure.DataLake.Store.UserGroupRepresentation? userIdFormat, 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 ListStatusAsync : string * string * string * int * Nullable<Microsoft.Azure.DataLake.Store.UserGroupRepresentation> * Microsoft.Azure.DataLake.Store.AdlsClient * Microsoft.Azure.DataLake.Store.RequestOptions * Microsoft.Azure.DataLake.Store.OperationResponse * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.Azure.DataLake.Store.DirectoryEntry>>
Public Shared Function ListStatusAsync (path As String, listAfter As String, listBefore As String, listSize As Integer, userIdFormat As Nullable(Of UserGroupRepresentation), client As AdlsClient, req As RequestOptions, resp As OperationResponse, Optional cancelToken As CancellationToken = Nothing) As Task(Of List(Of DirectoryEntry))

参数

path
String

目录的路径

listAfter
String

文件名后应从服务器获取文件列表

listBefore
String

应从服务器获取文件列表的文件名

listSize
Int32

要从服务器获取的列表大小

userIdFormat
Nullable<UserGroupRepresentation>

表示用户或组对象的方式

client
AdlsClient

ADLS 客户端

req
RequestOptions

用于更改 Http 请求行为的选项

resp
OperationResponse

存储 Http 请求的响应/输出

cancelToken
CancellationToken

CancellationToken 取消请求

返回

目录项列表

适用于