MessagePropertyFilter.AdministrationQueue Свойство
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Возвращает или задает значение, указывающее, следует ли получать AdministrationQueue сведения о свойстве при получении или просмотре сообщения.
public:
property bool AdministrationQueue { bool get(); void set(bool value); };
[System.Messaging.MessagingDescription("MsgAdministrationQueue")]
public bool AdministrationQueue { get; set; }
[<System.Messaging.MessagingDescription("MsgAdministrationQueue")>]
member this.AdministrationQueue : bool with get, set
Public Property AdministrationQueue As Boolean
Значение свойства
trueЗначение , falseчтобы получить AdministrationQueue сведения; в противном случае . Значение по умолчанию — true.
- Атрибуты
Примеры
В следующем примере кода показано использование AdministrationQueue свойства.
// Set the queue's MessageReadPropertyFilter property
// to enable the message's AdministrationQueue property.
queue->MessageReadPropertyFilter->
AdministrationQueue = 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
// AdministrationQueue property.
Console::WriteLine("Message.AdministrationQueue: {0}",
orderMessage->AdministrationQueue);
// Set the queue's MessageReadPropertyFilter property to enable the
// message's AdministrationQueue property.
queue.MessageReadPropertyFilter.AdministrationQueue = 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 AdministrationQueue property.
Console.WriteLine("Message.AdministrationQueue: {0}",
orderMessage.AdministrationQueue);
Комментарии
Свойство AdministrationQueueMessage класса указывает имя очереди, получающей системные подтверждения.