ActiveXMessageFormatter.CanRead(Message) Método

Definição

Determina se o formatador pode desserializar o conteúdo da mensagem.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
Public Function CanRead (message As Message) As Boolean

Parâmetros

message
Message

O Message a ser inspecionado.The Message to inspect.

Retornos

Boolean

true se o ActiveXMessageFormatter pode desserializar a mensagem; caso contrário, false.true if the ActiveXMessageFormatter can deserialize the message; otherwise, false.

Implementações

Exceções

O parâmetro message é null.The message parameter is null.

Comentários

CanRead retorna false se o corpo da mensagem não for um primitivo que o controle ActiveX do enfileiramento de mensagens possa desserializar ou se não implementar a IPersistStream interface.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.

Aplica-se a