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
.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈