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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기