NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Message.BodyType

Gets or sets the type of data the message body contains.

[Visual Basic]
Overridable Public Property BodyType As Integer
[C#]
public int BodyType {virtual get; virtual set;}
[C++]
public: __property virtual int get_BodyType();
public: __property virtual void set_BodyType(int);
[JScript]
public function get BodyType() : int;
public function set BodyType(int);

Property Value

The true type of the message body, such as string, date, currency, or number.

Exceptions

Exception Type Condition
InvalidOperationException The message queue is filtered not to read the Body property.

Remarks

The BodyType indicates the true type of the object that represents the Body of the message. Message Queuing recognizes the Body as an object or as a serialized stream. BodyType indicates the specific type of the message contents. This can include string, date, currency, number, an array of bytes, or any persistent COM object.

See Also

Message Class | Message Members | System.Messaging Namespace | Message | Body | BodyStream | Formatter | Send | TBD