MsmqIntegrationBindingElement.SerializationFormat Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the MsmqMessageSerializationFormat to be used when serializing MSMQ messages.
public:
property System::ServiceModel::MsmqIntegration::MsmqMessageSerializationFormat SerializationFormat { System::ServiceModel::MsmqIntegration::MsmqMessageSerializationFormat get(); void set(System::ServiceModel::MsmqIntegration::MsmqMessageSerializationFormat value); };
public System.ServiceModel.MsmqIntegration.MsmqMessageSerializationFormat SerializationFormat { get; set; }
member this.SerializationFormat : System.ServiceModel.MsmqIntegration.MsmqMessageSerializationFormat with get, set
Public Property SerializationFormat As MsmqMessageSerializationFormat
Property Value
The MsmqMessageSerializationFormat to be used when serializing MSMQ messages.
Exceptions
The value is not within the values of MsmqMessageSerializationFormat.
Examples
MsmqIntegrationBindingElement msmqBindingElement = new MsmqIntegrationBindingElement();
msmqBindingElement.SerializationFormat = MsmqMessageSerializationFormat.Binary;
Remarks
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
.