Read Method (XmlMessageFormatter)
Reads the contents from the given message and creates an object that contains the deserialized message.
Syntax
'Usage Dim instance As XmlMessageFormatter Dim message As Message Dim value As Object value = instance.Read(message)
Parameters
- message
- The Message, in XML format, to deserialize.
Return Value
The deserialized message.
Exceptions
Exception | Description |
---|---|
System.InvalidOperationException | Neither the TargetTypeNames nor TargetTypes property has been set.-or- The instance serialized in the message body does not comply with any of the schemas represented by the types in the TargetTypeNames and TargetTypes properties. |
System.ArgumentNullException | The message parameter 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