MsmqIntegrationElement.SerializationFormat Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or set the MsmqMessageSerializationFormat to be used when serializing Message Queuing (MSMQ) messages.

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

[ConfigurationPropertyAttribute("serializationFormat", DefaultValue = MsmqMessageSerializationFormat.Xml)]
public MsmqMessageSerializationFormat SerializationFormat { get; set; }

Property Value

Type: System.ServiceModel.MsmqIntegration.MsmqMessageSerializationFormat

The MsmqMessageSerializationFormat to be used when serializing MSMQ messages.

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.

.NET Framework
Available since 3.0
Return to top
Show: