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

Значение свойства

Значение true означает получение сведений UseTracing, в противном случае — значение 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);

Комментарии

Свойство UseTracingMessage класса указывает, следует ли отслеживать маршрут сообщения по мере его перемещения к целевой очереди. Если trueзадано значение , то каждый раз, когда исходное сообщение проходит через сервер маршрутизации очереди сообщений, в очередь системных отчетов отправляется созданное очередью сообщений.

Использование трассировки включает настройку Active Directory и указание очереди отчетов для предприятия очереди сообщений. Эти параметры настраивается администратором.

Применяется к

См. также раздел