C#C++F#VB
CloudFileShare.::..SetPermissionsAsync Method (FileSharePermissions, CancellationToken)(FileSharePermissions^, CancellationToken)(FileSharePermissions, CancellationToken)(FileSharePermissions, CancellationToken)
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, CancellationToken cancellationToken )
C++
public: [DoesServiceRequestAttribute] virtual Task^ SetPermissionsAsync( FileSharePermissions^ permissions, CancellationToken cancellationToken )
[<DoesServiceRequestAttribute>] abstract SetPermissionsAsync : permissions:FileSharePermissions * cancellationToken:CancellationToken -> Task [<DoesServiceRequestAttribute>] override SetPermissionsAsync : permissions:FileSharePermissions * cancellationToken:CancellationToken -> Task
<DoesServiceRequestAttribute> Public Overridable Function SetPermissionsAsync ( permissions As FileSharePermissions, cancellationToken As CancellationToken ) 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.
- cancellationToken
-
Type:
System.Threading.CancellationTokenSystem.Threading::CancellationTokenSystem.Threading.CancellationTokenSystem.Threading.CancellationToken
A CancellationToken to observe while waiting for a task to complete.
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