C#C++F#VB
CloudFileShare.::..SetPermissionsAsync Method (FileSharePermissions, AccessCondition, FileRequestOptions, OperationContext)(FileSharePermissions^, AccessCondition^, FileRequestOptions^, OperationContext^)(FileSharePermissions, AccessCondition, FileRequestOptions, OperationContext)(FileSharePermissions, AccessCondition, FileRequestOptions, OperationContext)
Initiates an asynchronous operation that sets permissions for the share.
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
[DoesServiceRequestAttribute] public virtual Task SetPermissionsAsync( FileSharePermissions permissions, AccessCondition accessCondition, FileRequestOptions options, OperationContext operationContext )
C++
public: [DoesServiceRequestAttribute] virtual Task^ SetPermissionsAsync( FileSharePermissions^ permissions, AccessCondition^ accessCondition, FileRequestOptions^ options, OperationContext^ operationContext )
[<DoesServiceRequestAttribute>] abstract SetPermissionsAsync : permissions:FileSharePermissions * accessCondition:AccessCondition * options:FileRequestOptions * operationContext:OperationContext -> Task [<DoesServiceRequestAttribute>] override SetPermissionsAsync : permissions:FileSharePermissions * accessCondition:AccessCondition * options:FileRequestOptions * operationContext:OperationContext -> Task
<DoesServiceRequestAttribute> Public Overridable Function SetPermissionsAsync ( permissions As FileSharePermissions, accessCondition As AccessCondition, options As FileRequestOptions, operationContext As OperationContext ) As Task
Parameters
- permissions
-
Type:
Microsoft.WindowsAzure.Storage.File.FileSharePermissionsMicrosoft.WindowsAzure.Storage.File::FileSharePermissions^Microsoft.WindowsAzure.Storage.File.FileSharePermissionsMicrosoft.WindowsAzure.Storage.File.FileSharePermissions
The permissions to apply to the share.
- accessCondition
-
Type:
Microsoft.WindowsAzure.Storage.AccessConditionMicrosoft.WindowsAzure.Storage::AccessCondition^Microsoft.WindowsAzure.Storage.AccessConditionMicrosoft.WindowsAzure.Storage.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
-
Type:
Microsoft.WindowsAzure.Storage.File.FileRequestOptionsMicrosoft.WindowsAzure.Storage.File::FileRequestOptions^Microsoft.WindowsAzure.Storage.File.FileRequestOptionsMicrosoft.WindowsAzure.Storage.File.FileRequestOptions
A FileRequestOptions object that specifies additional options for the request.
- operationContext
-
Type:
Microsoft.WindowsAzure.Storage.OperationContextMicrosoft.WindowsAzure.Storage::OperationContext^Microsoft.WindowsAzure.Storage.OperationContextMicrosoft.WindowsAzure.Storage.OperationContext
An OperationContext object that represents the context for the current operation.
Return Value
Type: System.Threading.Tasks.TaskSystem.Threading.Tasks::Task^System.Threading.Tasks.TaskSystem.Threading.Tasks.TaskA Task object that represents the asynchronous operation.
See Also
SetPermissionsAsync Overload
CloudFileShare Class
Microsoft.WindowsAzure.Storage.File Namespace