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



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

Property Value

An array of type System.String that specifies the types of objects to deserialize from the message body when reading the message.
Exceptions
ExceptionDescription
The TargetTypeNames 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