BodyType Property
Gets or sets the type of data that the message body contains.
Syntax
'Declaration <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> <ReadOnlyAttribute(True)> <MessagingDescriptionAttribute("Indicates the type of body the message contains")> Public Property BodyType As Integer
'Usage Dim instance As Message Dim value As Integer instance.BodyType = value value = instance.BodyType
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [ReadOnly(true)] [MessagingDescription("Indicates the type of body the message contains")] public int BodyType {get; set;}
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [ReadOnly(true)] [MessagingDescription("Indicates the type of body the message contains")] public: property int BodyType { int get(); void set ( int value); }
Property Value
The message body's true type, such as a string, a date, a currency, or a number.Exceptions
Exception | Description |
---|---|
System.InvalidOperationException | The message queue is filtered to ignore the Body property. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also