Επεξεργασία

Κοινή χρήση μέσω


MsmqIntegrationElement.SerializationFormat Property

Definition

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

public:
 property System::ServiceModel::MsmqIntegration::MsmqMessageSerializationFormat SerializationFormat { System::ServiceModel::MsmqIntegration::MsmqMessageSerializationFormat get(); void set(System::ServiceModel::MsmqIntegration::MsmqMessageSerializationFormat value); };
[System.Configuration.ConfigurationProperty("serializationFormat", DefaultValue=System.ServiceModel.MsmqIntegration.MsmqMessageSerializationFormat.Xml)]
public System.ServiceModel.MsmqIntegration.MsmqMessageSerializationFormat SerializationFormat { get; set; }
[<System.Configuration.ConfigurationProperty("serializationFormat", DefaultValue=System.ServiceModel.MsmqIntegration.MsmqMessageSerializationFormat.Xml)>]
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.

Attributes

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.

Applies to