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);
The true type of the message body, such as string, date, currency, or number.
Exception Type | Condition |
---|---|
InvalidOperationException | The message queue is filtered not to read the Body property. |
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.
Message Class | Message Members | System.Messaging Namespace | Message | Body | BodyStream | Formatter | Send | TBD