Storage Client Library for Windows Runtime (Version 7.0)

Microsoft.WindowsAzure.Storage.Queue

Adds a message to the queue.

Namespace:   Microsoft.WindowsAzure.Storage.Queue
Assembly:  Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)

Syntax

 
public virtual Task AddMessageAsync(
	CloudQueueMessage message,
	Nullable<TimeSpan> timeToLive,
	Nullable<TimeSpan> initialVisibilityDelay,
	QueueRequestOptions options,
	OperationContext operationContext,
	CancellationToken cancellationToken
)
 
public:
virtual Task^ AddMessageAsync(
	CloudQueueMessage^ message,
	Nullable<TimeSpan> timeToLive,
	Nullable<TimeSpan> initialVisibilityDelay,
	QueueRequestOptions^ options,
	OperationContext^ operationContext,
	CancellationToken cancellationToken
)
 
abstract AddMessageAsync : 
        message:CloudQueueMessage *
        timeToLive:Nullable<TimeSpan> *
        initialVisibilityDelay:Nullable<TimeSpan> *
        options:QueueRequestOptions *
        operationContext:OperationContext *
        cancellationToken:CancellationToken -> Task
override AddMessageAsync : 
        message:CloudQueueMessage *
        timeToLive:Nullable<TimeSpan> *
        initialVisibilityDelay:Nullable<TimeSpan> *
        options:QueueRequestOptions *
        operationContext:OperationContext *
        cancellationToken:CancellationToken -> 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
Type: Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessageMicrosoft.WindowsAzure.Storage.Queue::CloudQueueMessage^Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessageMicrosoft.WindowsAzure.Storage.Queue.CloudQueueMessage

The message to add.

timeToLive
Type: System.Nullable<TimeSpan>System::Nullable<TimeSpan>System.Nullable<TimeSpan>System.Nullable(Of TimeSpan)

The maximum time to allow the message to be in the queue, or null.

initialVisibilityDelay
Type: System.Nullable<TimeSpan>System::Nullable<TimeSpan>System.Nullable<TimeSpan>System.Nullable(Of TimeSpan)

The length of time from now during which the message will be invisible. If null then the message will be visible immediately.

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 to top