MsmqIntegrationBindingElement::SerializationFormat Property
Gets or sets the MsmqMessageSerializationFormat to be used when serializing MSMQ messages.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public: property MsmqMessageSerializationFormat SerializationFormat { MsmqMessageSerializationFormat get(); void set(MsmqMessageSerializationFormat value); }
Property Value
Type: System.ServiceModel.MsmqIntegration::MsmqMessageSerializationFormatThe MsmqMessageSerializationFormat to be used when serializing MSMQ messages.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The value is not within the values of MsmqMessageSerializationFormat. |
This property can have one of the following values:
ActiveX - The ActiveX serializer is used to serialize objects.
Binary - The BinaryFormatter is used to serialize objects.
ByteArray - The object is serialized to an array of bytes.
Stream - The object is serialized to a stream.
Xml - The XmlSerializer is used to serialize objects.
The default value is Xml.
MsmqIntegrationBindingElement msmqBindingElement = new MsmqIntegrationBindingElement();
msmqBindingElement.SerializationFormat = MsmqMessageSerializationFormat.Binary;
Available since 3.0