Condividi tramite


CloudFileShare.CreateFilePermissionAsync Method

Definition

Creates a File Permission.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<string> CreateFilePermissionAsync (string permission, Microsoft.Azure.Storage.File.FileRequestOptions options = default, Microsoft.Azure.Storage.OperationContext operationContext = default, System.Threading.CancellationToken? cancellationToken = default);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member CreateFilePermissionAsync : string * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext * Nullable<System.Threading.CancellationToken> -> System.Threading.Tasks.Task<string>
override this.CreateFilePermissionAsync : string * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext * Nullable<System.Threading.CancellationToken> -> System.Threading.Tasks.Task<string>
Public Overridable Function CreateFilePermissionAsync (permission As String, Optional options As FileRequestOptions = Nothing, Optional operationContext As OperationContext = Nothing, Optional cancellationToken As Nullable(Of CancellationToken) = Nothing) As Task(Of String)

Parameters

permission
String

The file permission to create

options
FileRequestOptions

A FileRequestOptions object that specifies additional options for the request. If null, default options are applied to the request.

operationContext
OperationContext

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

cancellationToken
Nullable<CancellationToken>

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

Returns

The file permission key

Attributes

Applies to