TargetTypes Property
Specifies the set of possible types that will be deserialized by the formatter from the message provided.
Syntax
'Declaration <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> <BrowsableAttribute(False)> <MessagingDescriptionAttribute("Specifies the set of possible types that will be deserialized by the formatter from the message provided.")> Public Property TargetTypes As Type()
'Usage Dim instance As XmlMessageFormatter Dim value() As Type instance.TargetTypes = value value = instance.TargetTypes
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [Browsable(false)] [MessagingDescription("Specifies the set of possible types that will be deserialized by the formatter from the message provided.")] public Type[] TargetTypes {get; set;}
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [Browsable(false)] [MessagingDescription("Specifies the set of possible types that will be deserialized by the formatter from the message provided.")] 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
Exception | Description |
---|---|
System.ArgumentNullException | 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