Editar

Compartilhar via


MsmqMessage<T>.BodyType Property

Definition

Gets or sets an Int32 value that indicates the type of the body of the message.

public:
 property Nullable<int> BodyType { Nullable<int> get(); void set(Nullable<int> value); };
public int? BodyType { get; set; }
member this.BodyType : Nullable<int> with get, set
Public Property BodyType As Nullable(Of Integer)

Property Value

An Int32 value that indicates the type of the body of the message. May be null.

Examples

message.BodyType = 23;
message.BodyType = 23

Remarks

Message Queuing (MSMQ) recognizes the body contents as an object or as a serialized stream. The BodyType property indicates the type of the object within the Body property of the message.

The ActiveX formatter performs binding between native types and the object in a message body. If you use the ActiveX formatter, the formatter sets the BodyType property for you.

Applies to