Share via


MessagePropertyFilter.ResponseQueue Özellik

Tanım

İletiyi alırken veya göz atırken özellik bilgilerinin alınıp alınmayacağını ResponseQueue belirten bir değer alır veya ayarlar.

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

Özellik Değeri

true bilgi almak ResponseQueue için; aksi takdirde , false. Varsayılan değer: true.

Öznitelikler

Örnekler

Aşağıdaki kod örneği özelliğinin ResponseQueue kullanımını gösterir.

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

Açıklamalar

ResponseQueue sınıfının özelliğiMessage, alıcı uygulama tarafından gönderen uygulamaya geri gönderilen uygulama tarafından oluşturulan yanıt iletilerini alan kuyruğu tanımlar. Yanıt kuyrukları, uygulama iletilerini gönderdiğinde gönderen uygulama tarafından belirtilir. Kullanılabilir herhangi bir kuyruk yanıt kuyruğu olarak belirtilebilir.

Yanıt kuyruğuna döndürülen iletiler uygulamaya özeldir. Uygulama, iletilerde ne olduğunu ve bir ileti alındığında ne yapılacağını tanımlamalıdır.

Şunlara uygulanır

Ayrıca bkz.