MessagePropertyFilter.DestinationQueue Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
İletiyi alırken veya göz atırken özellik bilgilerinin alınıp alınmayacağını DestinationQueue belirten bir değer alır veya ayarlar.
public:
property bool DestinationQueue { bool get(); void set(bool value); };
[System.Messaging.MessagingDescription("MsgDestinationQueue")]
public bool DestinationQueue { get; set; }
[<System.Messaging.MessagingDescription("MsgDestinationQueue")>]
member this.DestinationQueue : bool with get, set
Public Property DestinationQueue As Boolean
Özellik Değeri
true
bilgi almak DestinationQueue için; aksi takdirde , false
. Varsayılan değer: false
.
- Öznitelikler
Örnekler
Aşağıdaki kod örneği özelliğinin DestinationQueue kullanımını gösterir.
// Set the queue's MessageReadPropertyFilter property
// to enable the message's DestinationQueue property.
queue->MessageReadPropertyFilter->
DestinationQueue = 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
// Destinationqueue->QueueName property.
Console::WriteLine(
"Message.Destinationqueue->QueueName: {0}",
orderMessage->DestinationQueue->QueueName);
// Set the queue's MessageReadPropertyFilter property to enable the
// message's DestinationQueue property.
queue.MessageReadPropertyFilter.DestinationQueue = 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 DestinationQueue.QueueName
// property.
Console.WriteLine("Message.DestinationQueue.QueueName: {0}",
orderMessage.DestinationQueue.QueueName);
Açıklamalar
DestinationQueue sınıfının özelliğiMessage, iletinin özgün hedef sırasını tanımlar. Genellikle bir günlükte veya teslim edilemeyen ileti sırasındaki bir iletinin özgün hedefini belirlemek için kullanılır. Yanıt kuyruğuna yanıt iletisi gönderirken de kullanılabilir.