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
Namespace: Amazon.SQS
Assembly: AWSSDK.dll
Version: 2.0.0.3
Syntax
public virtual ReceiveMessageResponse ReceiveMessage( ReceiveMessageRequest receiveMessageRequest )
Parameters
- receiveMessageRequest
-
Type: Amazon.SQS.Model.ReceiveMessageRequest
Container for the necessary parameters to execute the ReceiveMessage service method on AmazonSQS.
Type: Amazon.SQS.Model.ReceiveMessageResponse
The response from the ReceiveMessage service method, as returned by AmazonSQS.
Exceptions
| Exception | Condition |
|---|---|
| Amazon.SQS.Model.OverLimitException |
Version Information
.NET Framework:
Supported in: 4.5, 4.0, 3.5