CanRead Method (XmlMessageFormatter)
Determines whether the formatter can deserialize the message.
Syntax
'Usage Dim instance As XmlMessageFormatter Dim message As Message Dim value As Boolean value = instance.CanRead(message)
Parameters
- message
- The Message to inspect.
Return Value
true if the XML formatter can deserialize the message; otherwise, false.
Exceptions
Exception | Description |
---|---|
System.InvalidOperationException | Neither the TargetTypeNames nor TargetTypes property has been set. |
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