MessageType 枚举

定义

标识消息的类型。Identifies the type of a message. 消息可以是典型消息队列消息、肯定(到达和读取)或否定(到达和读取)确认消息或报告消息。A message can be a typical Message Queuing message, a positive (arrival and read) or negative (arrival and read) acknowledgment message, or a report message.

public enum class MessageType
[System.Serializable]
public enum MessageType
type MessageType = 
Public Enum MessageType
继承
MessageType
属性

字段

Acknowledgment 1

确认消息。An acknowledgment message.

Normal 2

普通消息队列消息。A normal Message Queuing message.

Report 3

报告消息。A report message.

注解

典型 (Normal类型) 消息是使用MessageMessageQueue.Send或方法的任何重载发送到队列的消息。Typical (Normal type) messages are those that you send to a queue using either the Message class or any overload of the MessageQueue.Send method.

发送应用程序请求消息时, 消息队列会生成确认消息。Message Queuing generates acknowledgment messages whenever the sending application requests one. 如果使用Message类发送消息, 则可以使用其AcknowledgeType属性来指定要接收的确认类型。If you send a message using the Message class, you can use its AcknowledgeType property to specify the types of acknowledgments to receive. 例如,消息队列可生成肯定消息或否定消息,以指示原始消息已到达或已被读取。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. 当你使用Message接收或查看确认消息时, 其Acknowledgment属性将指示消息队列发送确认的原因。When you receive or peek an acknowledgment message using a Message, its Acknowledgment property indicates the reason Message Queuing sent the acknowledgment.

只要在源队列管理器中定义了报表队列, 消息队列就会生成报告消息。Message Queuing generates report messages whenever a report queue is defined at the source queue manager. 启用跟踪后 (通过在原始消息Message.UseTracing上设置属性), 每当原始消息进入或离开消息队列服务器时, 消息队列都会向消息队列报告队列发送报告消息。When tracing is enabled (by setting the Message.UseTracing property on the original message), Message Queuing sends a report message to the Message Queuing report queue each time the original message enters or leaves a Message Queuing server.

适用于

另请参阅