Message.MessageType Property
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 the message type: Normal
, Acknowledgment
, or Report
.
public:
property System::Messaging::MessageType MessageType { System::Messaging::MessageType get(); };
[System.Messaging.MessagingDescription("MsgMessageType")]
public System.Messaging.MessageType MessageType { get; }
[<System.Messaging.MessagingDescription("MsgMessageType")>]
member this.MessageType : System.Messaging.MessageType
Public ReadOnly Property MessageType As MessageType
One of the MessageType values.
- Attributes
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.
The following code example displays the value of a message's MessageType property.
Message Queuing typically sets this property when it sends the message. A Message Queuing message can be one of the following types:
Normal
, which is either a typical message sent from an application to a queue, or a response message returned to the sending application.Acknowledgement
, which Message Queuing generates whenever the sending application requests one. For example, Message Queuing can generate positive or negative messages to indicate that the original message arrived or was read. Message Queuing returns the appropriate acknowledgment message to the administration queue specified by the sending application.Report
, which Message Queuing generates whenever a report queue is defined at the source Queue Manager. When tracing is enabled, Message Queuing sends a report message to the Message Queuing report queue each time the original message enters or leaves a Message Queuing server.
Tuote | Versiot |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Tuotteen .NET palaute
.NET on avoin lähdekoodi projekti. Anna palautetta valitsemalla linkki: