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

Core.SetAclAsync 方法

定义

重载

SetAclAsync(String, List<AclEntry>, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

设置文件或目录的 Acl 条目。 它会擦除路径的现有 Acl 条目。

SetAclAsync(String, String, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

设置文件或目录的 Acl 条目。 它会擦除路径的现有 Acl 条目。

SetAclAsync(String, List<AclEntry>, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

设置文件或目录的 Acl 条目。 它会擦除路径的现有 Acl 条目。

public static System.Threading.Tasks.Task SetAclAsync (string path, System.Collections.Generic.List<Microsoft.Azure.DataLake.Store.Acl.AclEntry> aclSpecList, 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 SetAclAsync : string * System.Collections.Generic.List<Microsoft.Azure.DataLake.Store.Acl.AclEntry> * 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 SetAclAsync (path As String, aclSpecList As List(Of AclEntry), client As AdlsClient, req As RequestOptions, resp As OperationResponse, Optional cancelToken As CancellationToken = Nothing) As Task

参数

path
String

文件或目录的路径

aclSpecList
List<AclEntry>

要设置的 Acl 条目列表

client
AdlsClient

ADLS 客户端

req
RequestOptions

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

resp
OperationResponse

存储 Http 请求的响应/输出

cancelToken
CancellationToken

CancellationToken 取消请求

返回

适用于

SetAclAsync(String, String, AdlsClient, RequestOptions, OperationResponse, CancellationToken)

设置文件或目录的 Acl 条目。 它会擦除路径的现有 Acl 条目。

public static System.Threading.Tasks.Task SetAclAsync (string path, string aclSpec, 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 SetAclAsync : string * string * 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 SetAclAsync (path As String, aclSpec As String, client As AdlsClient, req As RequestOptions, resp As OperationResponse, Optional cancelToken As CancellationToken = Nothing) As Task

参数

path
String

文件或目录的路径

aclSpec
String

包含用逗号分隔的 ACL 条目的 AclSpec 字符串

client
AdlsClient

ADLS 客户端

req
RequestOptions

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

resp
OperationResponse

存储 Http 请求的响应/输出

cancelToken
CancellationToken

CancellationToken 取消请求

返回

适用于