Aracılığıyla paylaş


MessagePropertyFilter.TimeToReachQueue Özellik

Tanım

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

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

Özellik Değeri

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

Öznitelikler

Örnekler

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

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

Açıklamalar

TimeToReachQueue sınıfının özelliği, iletinin Message hedef kuyruğa ulaşması için gönderildiği zamandan saniye olarak bir zaman sınırı belirtir.

Şunlara uygulanır

Ayrıca bkz.