SALES: 1-800-867-1380
Expand Minimize

CloudQueue.GetMessage Method

Updated: May 15, 2014

Gets a message from the queue using the default request options. This operation marks the retrieved message as invisible in the queue for the default visibility timeout period.

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

public CloudQueueMessage GetMessage (
	[OptionalAttribute] Nullable<TimeSpan> visibilityTimeout,
	[OptionalAttribute] QueueRequestOptions options,
	[OptionalAttribute] OperationContext operationContext



A TimeSpan specifying the visibility timeout interval.


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


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

Return Value

A CloudQueueMessage object.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows 7 and Windows Server 2008


Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft