MessageType MessageType MessageType MessageType Enum

定义

标识消息的类型。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
继承
属性

字段

Acknowledgment Acknowledgment Acknowledgment Acknowledgment 1

确认消息。An acknowledgment message.

Normal Normal Normal Normal 2

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

Report Report Report Report 3

报告消息。A report message.

注解

典型 (Normal类型) 的消息是指发送到使用队列Message类或任何重载MessageQueue.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.

适用于

另请参阅