System.Messaging Reference (Document! X Sample)
TargetTypes Property



System.Messaging Namespace > XmlMessageFormatter Class : TargetTypes Property
Specifies the set of possible types that will be deserialized by the formatter from the message provided.
Syntax
'Declaration
 
Public Property TargetTypes As Type()
'Usage
 
Dim instance As XmlMessageFormatter
Dim value() As Type
 
instance.TargetTypes = value
 
value = instance.TargetTypes
public Type[] TargetTypes {get; set;}
public:
property array<Type^>^ TargetTypes {
   array<Type^>^ get();
   void set (    array<Type^>^ value);
}

Property Value

An array of type System.Type that specifies the types of objects to deserialize from the message body when reading the message.
Exceptions
ExceptionDescription
The TargetTypes property is null.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

XmlMessageFormatter Class
XmlMessageFormatter Members