Sdílet prostřednictvím


MessagePropertyFilter.UseTracing Vlastnost

Definice

Získá nebo nastaví hodnotu, která určuje, zda se mají načíst UseTracing informace o vlastnosti při přijetí nebo náhledu zprávy.

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

Hodnota vlastnosti

true UseTracing přijímat informace, jinak . false Výchozí hodnota je false.

Atributy

Příklady

Následující příklad kódu ukazuje použití UseTracing vlastnosti.

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

Poznámky

Vlastnost UseTracingMessage třídy určuje, zda má sledovat trasu zprávy při pohybu směrem k cílové frontě. Pokud truepři každém průchodu původní zprávy směrovacím serverem služby Řízení front zpráv se zpráva vygenerovaná službou Řízení front zpráv odešle do fronty systémových sestav.

Použití trasování zahrnuje nastavení služby Active Directory a zadání fronty sestav pro podnik služby Řízení front zpráv. Tato nastavení konfiguruje správce.

Platí pro

Viz také