System.Messaging Reference (Document! X Sample)



System.Messaging Namespace > Message Class : MessageType Property
MessageType Property (Message)
Gets the message type: Normal, Acknowledgment, or Report.
Syntax
'Declaration
 
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
<MessagingDescriptionAttribute("A message can be a normal MSMQ message, a positive or negative (arrival and read) acknowledgment message, or a report message.")>
Public ReadOnly Property MessageType As MessageType
'Usage
 
Dim instance As Message
Dim value As MessageType
 
value = instance.MessageType
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[MessagingDescription("A message can be a normal MSMQ message, a positive or negative (arrival and read) acknowledgment message, or a report message.")]
public MessageType MessageType {get;}
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[MessagingDescription("A message can be a normal MSMQ message, a positive or negative (arrival and read) acknowledgment message, or a report message.")]
public:
property MessageType MessageType {
   MessageType get();
}

Property Value

One of the MessageType values.
Exceptions
ExceptionDescription
The message has not been sent. This property can only be read on messages retrieved from a queue.-or- The message queue is filtered to ignore the MessageType 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