Adds a message to the queue.
Namespace: Microsoft.WindowsAzure.Storage.Queue
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Usage
Visual Basic |
---|
Dim instance As CloudQueue
Dim message As CloudQueueMessage
Dim timeToLive As Nullable(Of TimeSpan)
Dim initialVisibilityDelay As Nullable(Of TimeSpan)
Dim options As QueueRequestOptions
Dim operationContext As OperationContext
Dim returnValue As IAsyncAction
returnValue = instance.AddMessageAsync(message, timeToLive, initialVisibilityDelay, options, operationContext) |
Syntax
Visual Basic |
---|
Public Function AddMessageAsync ( _
message As CloudQueueMessage, _
timeToLive As Nullable(Of TimeSpan), _
initialVisibilityDelay As Nullable(Of TimeSpan), _
options As QueueRequestOptions, _
operationContext As OperationContext _
) As IAsyncAction |
C# |
---|
public IAsyncAction AddMessageAsync (
CloudQueueMessage message,
Nullable<TimeSpan> timeToLive,
Nullable<TimeSpan> initialVisibilityDelay,
QueueRequestOptions options,
OperationContext operationContext
) |
C++ |
---|
public:
IAsyncAction^ AddMessageAsync (
CloudQueueMessage^ message,
Nullable<TimeSpan> timeToLive,
Nullable<TimeSpan> initialVisibilityDelay,
QueueRequestOptions^ options,
OperationContext^ operationContext
) |
J# |
---|
public IAsyncAction AddMessageAsync (
CloudQueueMessage message,
Nullable<TimeSpan> timeToLive,
Nullable<TimeSpan> initialVisibilityDelay,
QueueRequestOptions options,
OperationContext operationContext
) |
JScript |
---|
public function AddMessageAsync (
message : CloudQueueMessage,
timeToLive : Nullable<TimeSpan>,
initialVisibilityDelay : Nullable<TimeSpan>,
options : QueueRequestOptions,
operationContext : OperationContext
) : IAsyncAction |
Parameters
- message
The message to add.
- timeToLive
The maximum time to allow the message to be in the queue, or null.
- initialVisibilityDelay
The length of time from now during which the message will be invisible. If null
then the message will be visible immediately.
- options
A QueueRequestOptions object that specifies additional options for the request.
- operationContext
An OperationContext object that represents the context for the current operation.
Return Value
An
IAsyncAction that represents an asynchronous action.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
See Also