MsmqIntegrationBindingElement.SerializationFormat プロパティ

定義

MSMQ メッセージをシリアル化するときに使用する MsmqMessageSerializationFormat を取得または設定します。

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

プロパティ値

MSMQ メッセージをシリアル化するときに使用する MsmqMessageSerializationFormat

例外

値が MsmqMessageSerializationFormatの値内にありません。

MsmqIntegrationBindingElement msmqBindingElement = new MsmqIntegrationBindingElement();
msmqBindingElement.SerializationFormat = MsmqMessageSerializationFormat.Binary;

注釈

このプロパティの値は、次のいずれか 1 つです。

  • ActiveX - ActiveX シリアライザーは、オブジェクトをシリアル化するために使用されます。

  • Binary - BinaryFormatter は、オブジェクトをシリアル化するために使用されます。

  • ByteArray - オブジェクトはバイト配列にシリアル化されます。

  • Stream - オブジェクトはストリームにシリアル化されます。

  • Xml - XmlSerializer は、オブジェクトをシリアル化するために使用されます。

  • 既定値は Xml です。

適用対象