Retrieves one or more messages from the specified queue, including the message body and message ID of each message. Messages returned
by this action stay in the queue until you delete them. However, once a message is returned to a
If a
message is available in the queue, the call will return immediately. Otherwise, it will wait up to
You could ask for additional information about each message through the attributes. Attributes that can be
requested are
Inheritance Hierarchy
Namespace: Amazon.SQS.Model
Assembly: AWSSDK.dll
Version: 2.0.0.3
Syntax
public class ReceiveMessageRequest : AmazonWebServiceRequest IRequestEvents
The ReceiveMessageRequest type exposes the following members
Constructors
| Name | Description | |
|---|---|---|
|
ReceiveMessageRequest() |
Properties
| Name | Description | |
|---|---|---|
|
AttributeNames | A list of attributes that need to be returned along with each message. The set of valid attributes are [SenderId, ApproximateFirstReceiveTimestamp, ApproximateReceiveCount, SentTimestamp]. |
|
MaxNumberOfMessages | The maximum number of messages to return. Amazon SQS never returns more messages than this value but may return fewer. All of the messages are not necessarily returned. |
|
QueueUrl | The URL of the SQS queue to take action on. |
|
VisibilityTimeout |
The duration (in seconds) that the received messages are hidden from subsequent retrieve requests after being retrieved by a
|
|
WaitTimeSeconds | The duration (in seconds) for which the call will wait for a message to arrive in the queue before returning. If a message is available, the call will return sooner than WaitTimeSeconds. |
Version Information
.NET Framework:
Supported in: 4.5, 4.0, 3.5
.NET for Windows Store apps:
Supported in: Windows 8
.NET for Windows Phone:
Supported in: Window Phone 8