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; }
[<System.Messaging.MessagingDescription("MsgUseTracing")>]
member this.UseTracing : bool with get, set
Public Property UseTracing As Boolean

屬性值

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.

範例

下列程式碼範例會取得並設定訊息屬性的值 UseTracingThe 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.

適用於

另請參閱