CloudQueue.AddMessageAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddMessageAsync(CloudQueueMessage) |
Initiates an asynchronous operation to add a message to the queue. |
AddMessageAsync(CloudQueueMessage, CancellationToken) |
Initiates an asynchronous operation to add a message to the queue. |
AddMessageAsync(CloudQueueMessage, Nullable<TimeSpan>, Nullable<TimeSpan>, QueueRequestOptions, OperationContext) |
Initiates an asynchronous operation to add a message to the queue. |
AddMessageAsync(CloudQueueMessage, Nullable<TimeSpan>, Nullable<TimeSpan>, QueueRequestOptions, OperationContext, CancellationToken) |
Initiates an asynchronous operation to add a message to the queue. |
AddMessageAsync(CloudQueueMessage)
Initiates an asynchronous operation to add a message to the queue.
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task AddMessageAsync (Microsoft.Azure.Storage.Queue.CloudQueueMessage message);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member AddMessageAsync : Microsoft.Azure.Storage.Queue.CloudQueueMessage -> System.Threading.Tasks.Task
override this.AddMessageAsync : Microsoft.Azure.Storage.Queue.CloudQueueMessage -> System.Threading.Tasks.Task
Public Overridable Function AddMessageAsync (message As CloudQueueMessage) As Task
Parameters
- message
- CloudQueueMessage
A CloudQueueMessage object.
Returns
A Task object that represents the asynchronous operation.
- Attributes
Remarks
The CloudQueueMessage message passed in will be populated with the pop receipt, message ID, and the insertion/expiration time.
Applies to
AddMessageAsync(CloudQueueMessage, CancellationToken)
Initiates an asynchronous operation to add a message to the queue.
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task AddMessageAsync (Microsoft.Azure.Storage.Queue.CloudQueueMessage message, System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member AddMessageAsync : Microsoft.Azure.Storage.Queue.CloudQueueMessage * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.AddMessageAsync : Microsoft.Azure.Storage.Queue.CloudQueueMessage * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function AddMessageAsync (message As CloudQueueMessage, cancellationToken As CancellationToken) As Task
Parameters
- message
- CloudQueueMessage
A CloudQueueMessage object.
- cancellationToken
- CancellationToken
A CancellationToken to observe while waiting for a task to complete.
Returns
A Task object that represents the asynchronous operation.
- Attributes
Remarks
The CloudQueueMessage message passed in will be populated with the pop receipt, message ID, and the insertion/expiration time.
Applies to
AddMessageAsync(CloudQueueMessage, Nullable<TimeSpan>, Nullable<TimeSpan>, QueueRequestOptions, OperationContext)
Initiates an asynchronous operation to add a message to the queue.
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task AddMessageAsync (Microsoft.Azure.Storage.Queue.CloudQueueMessage message, TimeSpan? timeToLive, TimeSpan? initialVisibilityDelay, Microsoft.Azure.Storage.Queue.QueueRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member AddMessageAsync : Microsoft.Azure.Storage.Queue.CloudQueueMessage * Nullable<TimeSpan> * Nullable<TimeSpan> * Microsoft.Azure.Storage.Queue.QueueRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task
override this.AddMessageAsync : Microsoft.Azure.Storage.Queue.CloudQueueMessage * Nullable<TimeSpan> * Nullable<TimeSpan> * Microsoft.Azure.Storage.Queue.QueueRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task
Public Overridable Function AddMessageAsync (message As CloudQueueMessage, timeToLive As Nullable(Of TimeSpan), initialVisibilityDelay As Nullable(Of TimeSpan), options As QueueRequestOptions, operationContext As OperationContext) As Task
Parameters
- message
- CloudQueueMessage
A CloudQueueMessage object.
A TimeSpan specifying the maximum time to allow the message to be in the queue, or null
.
A TimeSpan specifying the interval of time from now during which the message will be invisible.
If null
then the message will be visible immediately.
- options
- QueueRequestOptions
A QueueRequestOptions object that specifies additional options for the request.
- operationContext
- OperationContext
An OperationContext object that represents the context for the current operation.
Returns
A Task object that represents the asynchronous operation.
- Attributes
Remarks
The CloudQueueMessage message passed in will be populated with the pop receipt, message ID, and the insertion/expiration time.
Applies to
AddMessageAsync(CloudQueueMessage, Nullable<TimeSpan>, Nullable<TimeSpan>, QueueRequestOptions, OperationContext, CancellationToken)
Initiates an asynchronous operation to add a message to the queue.
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task AddMessageAsync (Microsoft.Azure.Storage.Queue.CloudQueueMessage message, TimeSpan? timeToLive, TimeSpan? initialVisibilityDelay, Microsoft.Azure.Storage.Queue.QueueRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member AddMessageAsync : Microsoft.Azure.Storage.Queue.CloudQueueMessage * Nullable<TimeSpan> * Nullable<TimeSpan> * Microsoft.Azure.Storage.Queue.QueueRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.AddMessageAsync : Microsoft.Azure.Storage.Queue.CloudQueueMessage * Nullable<TimeSpan> * Nullable<TimeSpan> * Microsoft.Azure.Storage.Queue.QueueRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function AddMessageAsync (message As CloudQueueMessage, timeToLive As Nullable(Of TimeSpan), initialVisibilityDelay As Nullable(Of TimeSpan), options As QueueRequestOptions, operationContext As OperationContext, cancellationToken As CancellationToken) As Task
Parameters
- message
- CloudQueueMessage
A CloudQueueMessage object.
A TimeSpan specifying the maximum time to allow the message to be in the queue, or null
.
A TimeSpan specifying the interval of time from now during which the message will be invisible.
If null
then the message will be visible immediately.
- options
- QueueRequestOptions
A QueueRequestOptions object that specifies additional options for the request.
- operationContext
- OperationContext
An OperationContext object that represents the context for the current operation.
- cancellationToken
- CancellationToken
A CancellationToken to observe while waiting for a task to complete.
Returns
A Task object that represents the asynchronous operation.
- Attributes
Remarks
The CloudQueueMessage message passed in will be populated with the pop receipt, message ID, and the insertion/expiration time.
Applies to
Azure SDK for .NET