MessagePropertyFilter.UseJournalQueue Свойство

Определение

Получает или задает значение, указывающее, следует ли извлекать сведения свойства UseJournalQueue при получении или считывании сообщения.

public:
 property bool UseJournalQueue { bool get(); void set(bool value); };
[System.Messaging.MessagingDescription("MsgUseJournalQueue")]
public bool UseJournalQueue { get; set; }
[<System.Messaging.MessagingDescription("MsgUseJournalQueue")>]
member this.UseJournalQueue : bool with get, set
Public Property UseJournalQueue As Boolean

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

Значение true означает получение сведений UseJournalQueue, в противном случае — значение false. Значение по умолчанию — true.

Атрибуты

Примеры

В следующем примере кода демонстрируется использование UseJournalQueue свойство.

// Set the queue's MessageReadPropertyFilter property 
// to enable the message's UseJournalQueue property.
queue->MessageReadPropertyFilter->
    UseJournalQueue = 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 
// UseJournalQueue property.
Console::WriteLine("Message.UseJournalQueue: {0}", 
    orderMessage->UseJournalQueue);
// Set the queue's MessageReadPropertyFilter property to enable the
// message's UseJournalQueue property.
queue.MessageReadPropertyFilter.UseJournalQueue = 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 UseJournalQueue property.
Console.WriteLine("Message.UseJournalQueue: {0}",
    orderMessage.UseJournalQueue);

Комментарии

Свойство UseJournalQueueMessage класса указывает, должна ли копия сообщения храниться в журнале компьютера на исходном компьютере.

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

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