How to check the MSMQ messagebody is valid or not

Posted by somaraj on Stack Overflow See other posts from Stack Overflow or by somaraj
Published on 2009-08-18T03:52:37Z Indexed on 2010/03/09 8:06 UTC
Read the original article Hit count: 521

Filed under:
|

Hi,

Iam new to .Net and working on MSMQ

I want to check whether the body of a message receives is valid or not , so I am doing a validation " msmqMessage.Body == null " , but this throws exception . I also found that the bodytype is 0 when this happens other wise it will be 768

So is it ok to check whether the bodytype ==0 for invalid message .

I dont know what does 0 and 768 stands for , from where i can get differnt values for bodytype and what does it represent?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about msmq