WCF-Xtensions Class Reference for .NET
MessageEncodingMode Property (ContentNegotiationElement)






Gets and sets the message encoding mode to be used by this binding.
Syntax
[System.Configuration.ConfigurationProperty(Name="messageEncodingMode", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=false, 
   IsRequired=false, 
   IsKey=false)]
public SmartMessageEncodingMode MessageEncodingMode {get; set;}
public read-write property MessageEncodingMode: SmartMessageEncodingMode; 
System.Configuration.ConfigurationPropertyAttribute(Name="messageEncodingMode", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=, 
   IsRequired=, 
   IsKey=)
public function get,set MessageEncodingMode : SmartMessageEncodingMode
[System.Configuration.ConfigurationProperty(Name="messageEncodingMode", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=false, 
   IsRequired=false, 
   IsKey=false)]
public: __property SmartMessageEncodingMode get_MessageEncodingMode();
public: __property void set_MessageEncodingMode( 
   SmartMessageEncodingMode value
);
[System.Configuration.ConfigurationProperty(Name="messageEncodingMode", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=false, 
   IsRequired=false, 
   IsKey=false)]
public:
property SmartMessageEncodingMode MessageEncodingMode {
   SmartMessageEncodingMode get();
   void set (    SmartMessageEncodingMode value);
}
'Declaration
 
<System.Configuration.ConfigurationPropertyAttribute(Name="messageEncodingMode", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=False, 
   IsRequired=False, 
   IsKey=False)>
Public Property MessageEncodingMode As SmartMessageEncodingMode
 
'Usage
 
Dim instance As ContentNegotiationElement
Dim value As SmartMessageEncodingMode
 
instance.MessageEncodingMode = value
 
value = instance.MessageEncodingMode
Remarks

Regardless of the MessageEncodingMode settings, this binding is always able to decode messages encoded using any of the message encodings specified by the MessageEncodings collection.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ContentNegotiationElement Class
ContentNegotiationElement Members

Send Feedback