CloudQueue.AddMessage(CloudQueueMessage, Nullable<TimeSpan>, Nullable<TimeSpan>, QueueRequestOptions, OperationContext) CloudQueue.AddMessage(CloudQueueMessage, Nullable<TimeSpan>, Nullable<TimeSpan>, QueueRequestOptions, OperationContext) Method

Definition

Adds a message to the queue.

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual void AddMessage (Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessage message, Nullable<TimeSpan> timeToLive = null, Nullable<TimeSpan> initialVisibilityDelay = null, Microsoft.WindowsAzure.Storage.Queue.QueueRequestOptions options = null, Microsoft.WindowsAzure.Storage.OperationContext operationContext = null);
abstract member AddMessage : Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessage * Nullable<TimeSpan> * Nullable<TimeSpan> * Microsoft.WindowsAzure.Storage.Queue.QueueRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> unit
override this.AddMessage : Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessage * Nullable<TimeSpan> * Nullable<TimeSpan> * Microsoft.WindowsAzure.Storage.Queue.QueueRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> unit
Parameters
timeToLive
Nullable<TimeSpan>

A TimeSpan specifying the maximum time to allow the message to be in the queue, or null.

initialVisibilityDelay
Nullable<TimeSpan>

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 QueueRequestOptions

A QueueRequestOptions object that specifies additional options for the request. If null, default options are applied to the request.

operationContext
OperationContext OperationContext

An OperationContext object that represents the context for the current operation.

Remarks

The CloudQueueMessage message passed in will be populated with the pop receipt, message ID, and the insertion/expiration time.

Applies to