Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MsmqIntegrationBindingElement::TargetSerializationTypes Property

 

Gets or sets an array of Type objects that contain the types to which messages should be deserialized.

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

public:
property array<Type^>^ TargetSerializationTypes {
	array<Type^>^ get();
	void set(array<Type^>^ value);
}

Property Value

Type: array<System::Type^>^

An array of Type that contains the types to which messages should be deserialized.

The body of an MSMQ message is not typed. 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. This property is used only if MsmqMessageSerializationFormat is set to Xml.

MsmqIntegrationBindingElement msmqBindingElement = new MsmqIntegrationBindingElement();
msmqBindingElement.TargetSerializationTypes = new Type[] { typeof(string) };

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft