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.

適用於

另請參閱