C#C++F#VB
CloudQueue.::..SetPermissionsAsync Method (QueuePermissions, QueueRequestOptions, OperationContext, CancellationToken)(QueuePermissions^, QueueRequestOptions^, OperationContext^, CancellationToken)(QueuePermissions, QueueRequestOptions, OperationContext, CancellationToken)(QueuePermissions, QueueRequestOptions, OperationContext, CancellationToken)
Initiates an asynchronous operation to set permissions for the queue.
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
[DoesServiceRequestAttribute] public virtual Task SetPermissionsAsync( QueuePermissions permissions, QueueRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken )
C++
public: [DoesServiceRequestAttribute] virtual Task^ SetPermissionsAsync( QueuePermissions^ permissions, QueueRequestOptions^ options, OperationContext^ operationContext, CancellationToken cancellationToken )
[<DoesServiceRequestAttribute>] abstract SetPermissionsAsync : permissions:QueuePermissions * options:QueueRequestOptions * operationContext:OperationContext * cancellationToken:CancellationToken -> Task [<DoesServiceRequestAttribute>] override SetPermissionsAsync : permissions:QueuePermissions * options:QueueRequestOptions * operationContext:OperationContext * cancellationToken:CancellationToken -> Task
<DoesServiceRequestAttribute> Public Overridable Function SetPermissionsAsync ( permissions As QueuePermissions, options As QueueRequestOptions, operationContext As OperationContext, cancellationToken As CancellationToken ) As Task
Parameters
- permissions
-
Type:
Microsoft.WindowsAzure.Storage.Queue.Protocol.QueuePermissionsMicrosoft.WindowsAzure.Storage.Queue.Protocol::QueuePermissions^Microsoft.WindowsAzure.Storage.Queue.Protocol.QueuePermissionsMicrosoft.WindowsAzure.Storage.Queue.Protocol.QueuePermissions
A QueuePermissions object.
- options
-
Type:
Microsoft.WindowsAzure.Storage.Queue.QueueRequestOptionsMicrosoft.WindowsAzure.Storage.Queue::QueueRequestOptions^Microsoft.WindowsAzure.Storage.Queue.QueueRequestOptionsMicrosoft.WindowsAzure.Storage.Queue.QueueRequestOptions
A QueueRequestOptions 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.
- 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.