C#
C++
F#
VB
CloudBlobContainer.::..SetPermissionsAsync Method (BlobContainerPermissions, CancellationToken)(BlobContainerPermissions^, CancellationToken)(BlobContainerPermissions, CancellationToken)(BlobContainerPermissions, CancellationToken)
Initiates an asynchronous operation that sets permissions for the container.
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
[DoesServiceRequestAttribute] public virtual Task SetPermissionsAsync( BlobContainerPermissions permissions, CancellationToken cancellationToken )
C++
public: [DoesServiceRequestAttribute] virtual Task^ SetPermissionsAsync( BlobContainerPermissions^ permissions, CancellationToken cancellationToken )
[<DoesServiceRequestAttribute>] abstract SetPermissionsAsync : permissions:BlobContainerPermissions * cancellationToken:CancellationToken -> Task [<DoesServiceRequestAttribute>] override SetPermissionsAsync : permissions:BlobContainerPermissions * cancellationToken:CancellationToken -> Task
<DoesServiceRequestAttribute> Public Overridable Function SetPermissionsAsync ( permissions As BlobContainerPermissions, cancellationToken As CancellationToken ) As Task
Parameters
- permissions
-
Type:
Microsoft.WindowsAzure.Storage.Blob.BlobContainerPermissionsMicrosoft.WindowsAzure.Storage.Blob::BlobContainerPermissions^Microsoft.WindowsAzure.Storage.Blob.BlobContainerPermissionsMicrosoft.WindowsAzure.Storage.Blob.BlobContainerPermissions
The permissions to apply to the container.
- 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
CloudBlobContainer Class
Microsoft.WindowsAzure.Storage.Blob Namespace