IMessageFormatter.CanRead(Message) 方法

定义

在类中实现时,确定格式化程序是否可以反序列化消息的内容。When implemented in a class, determines whether the formatter can deserialize the contents of the message.

public:
 bool CanRead(System::Messaging::Message ^ message);
public bool CanRead (System.Messaging.Message message);
abstract member CanRead : System.Messaging.Message -> bool
Public Function CanRead (message As Message) As Boolean

参数

message
Message

要检查的 MessageThe Message to inspect.

返回

Boolean

如果格式化程序可以反序列化消息,则为 true;否则为 falsetrue if the formatter can deserialize the message; otherwise, false.

适用于

另请参阅