Noemax.WCFX.Channels Namespace > MessageEncodingBindingElementCollection Class : MessageEncodingSet Property |
'Declaration Public Property MessageEncodingSet As SmartMessageEncodingSet
'Usage Dim instance As MessageEncodingBindingElementCollection Dim value As SmartMessageEncodingSet instance.MessageEncodingSet = value value = instance.MessageEncodingSet
public SmartMessageEncodingSet MessageEncodingSet {get; set;}
public read-write property MessageEncodingSet: SmartMessageEncodingSet;
public function get,set MessageEncodingSet : SmartMessageEncodingSet
public: __property SmartMessageEncodingSet get_MessageEncodingSet(); public: __property void set_MessageEncodingSet( SmartMessageEncodingSet value );
public: property SmartMessageEncodingSet MessageEncodingSet { SmartMessageEncodingSet get(); void set ( SmartMessageEncodingSet value); }
If the collection was initialized using a predefined set, this property returns a SmartMessageEncodingSet value specifying the set of message encodings used in this collection. If this collection was not initialized using a predefined set, this property returns SmartMessageEncodingSet.Custom.
If this property is assigned to a value that is not equal to the current value of the property, the collection is cleared and reconfigured according to the new value.
Regardless of the order in which the message encodings were specified when setting the SmartMessageEncodingSet value, the predefined message encoding preference order is used. See SmartMessageEncodingSet for more information.
[C#]
SmartHttpBinding binding =new SmartHttpBinding();
binding.MessageEncodings.MessageEncodingSet = (SmartMessageEncodingSet.FI | SmartMessageEncodingSet.Text);
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