Message.UseTracing Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets a value that indicates whether to trace a message as it moves toward its destination queue.

Namespace:   System.Messaging
Assembly:  System.Messaging (in System.Messaging.dll)

public bool UseTracing { get; set; }

Property Value

Type: System.Boolean

true 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. The default is false.

Exception Condition

The message queue is filtered to ignore the UseTracing property.

The UseTracing property specifies whether to track the route of a message as it moves toward its destination queue. 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.

Using tracing involves setting up Active Directory and specifying a report queue for the Message Queuing enterprise. The administrator configures these settings.

The following code example gets and sets the value of a message's UseTracing property.

.NET Framework
Available since 1.1
Return to top