Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MsmqIntegrationBindingElement::SerializationFormat Property

 

Gets or sets the MsmqMessageSerializationFormat to be used when serializing MSMQ messages.

Namespace:   System.ServiceModel.MsmqIntegration
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
property MsmqMessageSerializationFormat SerializationFormat {
	MsmqMessageSerializationFormat get();
	void set(MsmqMessageSerializationFormat value);
}

Property Value

Type: System.ServiceModel.MsmqIntegration::MsmqMessageSerializationFormat

The 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;

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft