MessagePropertyFilter.UseTracing Właściwość

Definicja

Pobiera lub ustawia wartość wskazującą, czy pobierać UseTracing informacje o właściwości podczas odbierania lub przeglądania komunikatu.

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

Wartość właściwości

true w celu otrzymywania UseTracing informacji; falsew przeciwnym razie . Wartość domyślna to false.

Atrybuty

Przykłady

W poniższym przykładzie kodu pokazano użycie UseTracing właściwości .

// 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);

Uwagi

Właściwość UseTracingMessage klasy określa, czy śledzić trasę komunikatu, gdy przechodzi w kierunku kolejki docelowej. Jeśli true, za każdym razem, gdy oryginalny komunikat przechodzi przez serwer routingu kolejkowania komunikatów, komunikat wygenerowany przez kolejkę raportów systemu jest wysyłany do kolejki raportów systemowych.

Korzystanie z śledzenia obejmuje skonfigurowanie usługi Active Directory i określenie kolejki raportów dla przedsiębiorstwa kolejkowania komunikatów. Te ustawienia są konfigurowane przez administratora.

Dotyczy

Zobacz też