ActiveXMessageFormatter.CanRead(Message) ActiveXMessageFormatter.CanRead(Message) ActiveXMessageFormatter.CanRead(Message) Method

Definition

Determines whether the formatter can deserialize the contents of the message.

public:
 virtual bool CanRead(System::Messaging::Message ^ message);
public bool CanRead (System.Messaging.Message message);
abstract member CanRead : System.Messaging.Message -> bool
override this.CanRead : System.Messaging.Message -> bool

Parameters

message
Message Message Message

The Message to inspect.

Returns

true if the ActiveXMessageFormatter can deserialize the message; otherwise, false.

Implements

Exceptions

Remarks

CanRead returns false if the message body is not a primitive that the Message Queuing ActiveX control can deserialize or if it does not implement the IPersistStream interface.

Applies to