Message.UseTracing 属性

定义

获取或设置一个值,该值指示是否在消息向目标队列移动的过程中跟踪消息。Gets or sets a value that indicates whether to trace a message as it moves toward its destination queue.

public:
 property bool UseTracing { bool get(); void set(bool value); };
[System.Messaging.MessagingDescription("MsgUseTracing")]
public bool UseTracing { get; set; }
member this.UseTracing : bool with get, set
Public Property UseTracing As Boolean

属性值

如果在发往目标队列的过程中,由原始消息产生的每个中间步骤都生成发送给系统报告队列的报告,则为 true,否则为 falsetrue if each intermediate step made by the original message en route to the destination queue generates a report to be sent to the system's report queue; otherwise, false. 默认值为 falseThe default is false.

属性

异常

消息队列经过筛选后忽略了 UseTracing 属性。The message queue is filtered to ignore the UseTracing property.

示例

下面的代码示例获取并设置消息的UseTracing属性的值。The following code example gets and sets the value of a message's UseTracing property.

注解

UseTracing属性指定在消息到达目标队列时是否跟踪该消息的路由。The UseTracing property specifies whether to track the route of a message as it moves toward its destination queue. 如果true为, 则每次消息通过消息队列路由服务器时, 报表消息 (由消息队列生成) 都将发送到报表队列。If true, a report message (generated by Message Queuing) is sent to a report queue each time the message passes through a Message Queuing routing server. 报表队列由源队列管理器指定。The report queue is specified by the source Queue Manager. 报表队列并不限于消息队列生成的报表消息;还可以将应用程序生成的消息发送到报表队列。Report queues are not limited to report messages generated by Message Queuing; your application-generated messages can also be sent to report queues.

使用跟踪涉及到设置 Active Directory 和为消息队列企业指定报表队列。Using tracing involves setting up Active Directory and specifying a report queue for the Message Queuing enterprise. 管理员配置这些设置。The administrator configures these settings.

适用于

另请参阅