Freigeben über


DataLakePathClient.SetAccessControlRecursiveAsync Methode

Definition

Der SetAccessControlRecursiveAsync(IList<PathAccessControlItem>, String, AccessControlChangeOptions, CancellationToken) Vorgang legt die Access Control für einen Pfad und Unterpfade fest.

Weitere Informationen finden Sie unter Updatepfad.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.DataLake.Models.AccessControlChangeResult>> SetAccessControlRecursiveAsync (System.Collections.Generic.IList<Azure.Storage.Files.DataLake.Models.PathAccessControlItem> accessControlList, string continuationToken = default, Azure.Storage.Files.DataLake.Models.AccessControlChangeOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SetAccessControlRecursiveAsync : System.Collections.Generic.IList<Azure.Storage.Files.DataLake.Models.PathAccessControlItem> * string * Azure.Storage.Files.DataLake.Models.AccessControlChangeOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.DataLake.Models.AccessControlChangeResult>>
override this.SetAccessControlRecursiveAsync : System.Collections.Generic.IList<Azure.Storage.Files.DataLake.Models.PathAccessControlItem> * string * Azure.Storage.Files.DataLake.Models.AccessControlChangeOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.DataLake.Models.AccessControlChangeResult>>
Public Overridable Function SetAccessControlRecursiveAsync (accessControlList As IList(Of PathAccessControlItem), Optional continuationToken As String = Nothing, Optional options As AccessControlChangeOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AccessControlChangeResult))

Parameter

accessControlList
IList<PathAccessControlItem>

Die POSIX-Zugriffssteuerungsliste für die Datei oder das Verzeichnis.

continuationToken
String

Optionales Fortsetzungstoken, das verwendet werden kann, um den zuvor beendeten Vorgang fortzusetzen.

options
AccessControlChangeOptions

Optional AccessControlChangeOptions mit zusätzlichen Steuerelementen.

cancellationToken
CancellationToken

Optional CancellationToken zur Weitergabe von Benachrichtigungen, dass der Vorgang abgebrochen werden soll.

Gibt zurück

Eine Response<T> , die Zusammenfassungsstatistiken des Vorgangs enthält.

Hinweise

Ein DataLakeAclChangeFailedException wird ausgelöst, wenn eine Speicheranforderung ein RequestFailedException oder Exceptionauslöst.

Wenn andernfalls ein Fehler außerhalb der Anforderung auftritt, wird der jeweilige Exception Typ ausgelöst, wenn ein Fehler auftritt.

Gilt für: