AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 4.5
Delivers a message to the specified queue. With Amazon SQS, you now have the ability to send large payload messages that are up to 256KB (262,144 bytes) in size. To send large payloads, you must use an AWS SDK that supports SigV4 signing. To verify whether SigV4 is supported for an AWS SDK, check the SDK release notes.

The following list shows the characters (in Unicode) allowed in your message, according to the W3C XML specification. For more information, go to If you send any characters not included in the list, your request will be rejected.

#x9 | #xA | #xD | [#x20 to #xD7FF] | [#xE000 to #xFFFD] | [#x10000 to #x10FFFF]

Namespace: Amazon.SQS
Assembly: AWSSDK.dll
Version: (assembly version)


public virtual SendMessageResponse SendMessage(
         String queueUrl,
         String messageBody


Type: System.String

The URL of the Amazon SQS queue to take action on.

Type: System.String

The message to send. String maximum 256 KB in size. For a list of allowed characters, see the preceding important note.

Return Value
Type: Amazon.SQS.Model.SendMessageResponse
The response from the SendMessage service method, as returned by SQS.


InvalidMessageContentsException The message contains characters outside the allowed set.
UnsupportedOperationException Error code 400. Unsupported operation.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5