Share via


MessagePropertyFilter.UseTracing 속성

정의

메시지를 받거나 피킹할 때 UseTracing 속성 정보를 검색할지 여부를 나타내는 값을 가져오거나 설정합니다.

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

속성 값

UseTracing 정보를 받는 경우 true이고, 그렇지 않으면 false입니다. 기본값은 false입니다.

특성

예제

다음 코드 예제에서는 UseTracing 속성입니다.

// Set the queue's MessageReadPropertyFilter property 
// to enable the message's UseTracing property.
queue->MessageReadPropertyFilter->UseTracing = true;

// Peek at the message. Time out after ten seconds 
// in case the message was not delivered.
orderMessage = queue->Peek(TimeSpan::FromSeconds(10.0));

// Display the value of the message's 
// UseTracing property.
Console::WriteLine("Message.UseTracing: {0}", 
    orderMessage->UseTracing);
// Set the queue's MessageReadPropertyFilter property to enable the
// message's UseTracing property.
queue.MessageReadPropertyFilter.UseTracing = true;

// Peek at the message. Time out after ten seconds in case the message
// was not delivered.
orderMessage = queue.Peek(TimeSpan.FromSeconds(10.0));

// Display the value of the message's UseTracing property.
Console.WriteLine("Message.UseTracing: {0}",
    orderMessage.UseTracing);

설명

합니다 UseTracing 의 속성을 Message 클래스를 대상 큐로 이동할 때 메시지의 경로 추적할지 여부를 지정 합니다. 경우 true때마다 원본 메시지가 메시지 큐 라우팅 서버를 통해 전달, 메시지 큐에서 생성 된 보고서 메시지를 시스템 보고서 큐로 보내집니다.

추적을 사용 하 여 Active Directory를 설정 하 고 메시지 큐 엔터프라이즈를 위한 보고서 큐를 지정 해야 합니다. 이러한 설정은 관리자가 구성 됩니다.

적용 대상

추가 정보