MsmqIntegrationBindingElement.TargetSerializationTypes 属性
定义
public:
property cli::array <Type ^> ^ TargetSerializationTypes { cli::array <Type ^> ^ get(); void set(cli::array <Type ^> ^ value); };
public Type[] TargetSerializationTypes { get; set; }
member this.TargetSerializationTypes : Type[] with get, set
Public Property TargetSerializationTypes As Type()
属性值
- Type[]
包含消息反序列化的目标类型的 Type 的数组。An array of Type that contains the types to which messages should be deserialized.
示例
MsmqIntegrationBindingElement msmqBindingElement = new MsmqIntegrationBindingElement();
msmqBindingElement.TargetSerializationTypes = new Type[] { typeof(string) };
注解
MSMQ 消息的正文未类型化。The body of an MSMQ message is not typed. 使用 TargetSerializationTypes 属性可以指定将消息从 MSMQ 应用程序发送到 Windows Communication Foundation (WCF) 接收应用程序时将消息反序列化到的类型。The TargetSerializationTypes property enables you to specify the types to which messages are deserialized when they are sent from an MSMQ application to a Windows Communication Foundation (WCF) receiving application. 仅当 MsmqMessageSerializationFormat 设置为 Xml 时,才使用此属性。This property is used only if MsmqMessageSerializationFormat is set to Xml.