System.Messaging Reference (Document! X Sample)



The Message to inspect.
CanRead Method (IMessageFormatter)
When implemented in a class, determines whether the formatter can deserialize the contents of the message.
Syntax
'Declaration
 
Function CanRead( _
   ByVal message As Message _
) As Boolean
'Usage
 
Dim instance As IMessageFormatter
Dim message As Message
Dim value As Boolean
 
value = instance.CanRead(message)
bool CanRead( 
   Message message
)
bool CanRead( 
   Message^ message
) 

Parameters

message
The Message to inspect.

Return Value

true if the formatter can deserialize the message; otherwise, false.
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