MsmqMessage<T>.BodyType Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈