Delen via


CloudFileShare.SetPermissionsAsync Method

Definition

Overloads

SetPermissionsAsync(FileSharePermissions, AccessCondition, FileRequestOptions, OperationContext)

Initiates an asynchronous operation that sets permissions for the share.

SetPermissionsAsync(FileSharePermissions, AccessCondition, FileRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation that sets permissions for the share.

SetPermissionsAsync(FileSharePermissions, CancellationToken)

Initiates an asynchronous operation that sets permissions for the share.

SetPermissionsAsync(FileSharePermissions)

Initiates an asynchronous operation that sets permissions for the share.

SetPermissionsAsync(FileSharePermissions, AccessCondition, FileRequestOptions, OperationContext)

Initiates an asynchronous operation that sets permissions for the share.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task SetPermissionsAsync (Microsoft.Azure.Storage.File.FileSharePermissions permissions, Microsoft.Azure.Storage.AccessCondition accessCondition, Microsoft.Azure.Storage.File.FileRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member SetPermissionsAsync : Microsoft.Azure.Storage.File.FileSharePermissions * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task
override this.SetPermissionsAsync : Microsoft.Azure.Storage.File.FileSharePermissions * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task
Public Overridable Function SetPermissionsAsync (permissions As FileSharePermissions, accessCondition As AccessCondition, options As FileRequestOptions, operationContext As OperationContext) As Task

Parameters

permissions
FileSharePermissions

The permissions to apply to the share.

accessCondition
AccessCondition

An AccessCondition object that represents the condition that must be met in order for the request to proceed. If null, no condition is used.

options
FileRequestOptions

A FileRequestOptions object that specifies additional options for the request.

operationContext
OperationContext

An OperationContext object that represents the context for the current operation.

Returns

A Task object that represents the asynchronous operation.

Attributes

Applies to

SetPermissionsAsync(FileSharePermissions, AccessCondition, FileRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation that sets permissions for the share.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task SetPermissionsAsync (Microsoft.Azure.Storage.File.FileSharePermissions permissions, Microsoft.Azure.Storage.AccessCondition accessCondition, Microsoft.Azure.Storage.File.FileRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member SetPermissionsAsync : Microsoft.Azure.Storage.File.FileSharePermissions * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.SetPermissionsAsync : Microsoft.Azure.Storage.File.FileSharePermissions * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function SetPermissionsAsync (permissions As FileSharePermissions, accessCondition As AccessCondition, options As FileRequestOptions, operationContext As OperationContext, cancellationToken As CancellationToken) As Task

Parameters

permissions
FileSharePermissions

The permissions to apply to the share.

accessCondition
AccessCondition

An AccessCondition object that represents the condition that must be met in order for the request to proceed. If null, no condition is used.

options
FileRequestOptions

A FileRequestOptions object that specifies additional options for the request.

operationContext
OperationContext

An OperationContext object that represents the context for the current operation.

cancellationToken
CancellationToken

A CancellationToken to observe while waiting for a task to complete.

Returns

A Task object that represents the asynchronous operation.

Attributes

Applies to

SetPermissionsAsync(FileSharePermissions, CancellationToken)

Initiates an asynchronous operation that sets permissions for the share.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task SetPermissionsAsync (Microsoft.Azure.Storage.File.FileSharePermissions permissions, System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member SetPermissionsAsync : Microsoft.Azure.Storage.File.FileSharePermissions * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.SetPermissionsAsync : Microsoft.Azure.Storage.File.FileSharePermissions * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function SetPermissionsAsync (permissions As FileSharePermissions, cancellationToken As CancellationToken) As Task

Parameters

permissions
FileSharePermissions

The permissions to apply to the share.

cancellationToken
CancellationToken

A CancellationToken to observe while waiting for a task to complete.

Returns

A Task object that represents the asynchronous operation.

Attributes

Applies to

SetPermissionsAsync(FileSharePermissions)

Initiates an asynchronous operation that sets permissions for the share.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task SetPermissionsAsync (Microsoft.Azure.Storage.File.FileSharePermissions permissions);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member SetPermissionsAsync : Microsoft.Azure.Storage.File.FileSharePermissions -> System.Threading.Tasks.Task
override this.SetPermissionsAsync : Microsoft.Azure.Storage.File.FileSharePermissions -> System.Threading.Tasks.Task
Public Overridable Function SetPermissionsAsync (permissions As FileSharePermissions) As Task

Parameters

permissions
FileSharePermissions

The permissions to apply to the share.

Returns

A Task object that represents the asynchronous operation.

Attributes

Applies to