Modifies this request to include the specified message attribute. If an attribute already exists,
            its value will be replaced with the new value.
            
 Declaration Syntax
 Declaration Syntax| C# | 
[ObsoleteAttribute("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")] public PublishRequest WithAttribute( string key, MessageAttributeValue value )
 Parameters
 Parameters- key (String)
- The key.
- value (MessageAttributeValue)
- The value.
 Return Value
 Return ValueThe current instance.
 Exceptions
 Exceptions| Exception | Condition | 
|---|---|
| ArgumentException | Invalid key; cannot be NULL or empty. |