AWS SDK Version 3 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.

The user-specified message attribute value. For string data types, the value attribute has the same restrictions on the content as the message body. For more information, see Publish.

Name, type, and value must not be empty or null. In addition, the message body should not be empty or null. All parts of the message attribute, including name, type, and value, are included in the message size restriction, which is currently 256 KB (262,144 bytes). For more information, see Using Amazon SNS Message Attributes.

Inheritance Hierarchy

System.Object
  Amazon.SimpleNotificationService.Model.MessageAttributeValue

Namespace: Amazon.SimpleNotificationService.Model
Assembly: AWSSDK.SimpleNotificationService.dll
Version: 3.x.y.z

Syntax

C#
public class MessageAttributeValue

The MessageAttributeValue type exposes the following members

Constructors

NameDescription
Public Method MessageAttributeValue()

Properties

NameTypeDescription
Public Property BinaryValue System.IO.MemoryStream

Gets and sets the property BinaryValue.

Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.

Public Property DataType System.String

Gets and sets the property DataType.

Amazon SNS supports the following logical data types: String, Number, and Binary. For more information, see Message Attribute Data Types.

Public Property StringValue System.String

Gets and sets the property StringValue.

Strings are Unicode with UTF8 binary encoding. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

Version Information

.NET Standard:
Supported in: 1.3

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

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

Unity:
Supported Versions: 4.6 and above
Supported Platforms: Android, iOS, Standalone