MessagePropertyFilter.SentTime Ö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ı SentTime belirten bir değer alır veya ayarlar.
public:
property bool SentTime { bool get(); void set(bool value); };
[System.Messaging.MessagingDescription("MsgSentTime")]
public bool SentTime { get; set; }
[<System.Messaging.MessagingDescription("MsgSentTime")>]
member this.SentTime : bool with get, set
Public Property SentTime As Boolean
Özellik Değeri
true bilgi almak SentTime için; aksi takdirde , false. Varsayılan değer: false.
- Öznitelikler
Örnekler
Aşağıdaki kod örneği özelliğinin SentTime kullanımını gösterir.
// Set the queue's MessageReadPropertyFilter property
// to enable the message's SentTime property.
queue->MessageReadPropertyFilter->SentTime = 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 SentTime property.
Console::WriteLine("Message.SentTime: {0}",
orderMessage->SentTime);
// Set the queue's MessageReadPropertyFilter property to enable the
// message's SentTime property.
queue.MessageReadPropertyFilter.SentTime = 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 SentTime property.
Console.WriteLine("Message.SentTime: {0}",
orderMessage.SentTime);
Açıklamalar
SentTime sınıfının özelliğiMessage, gönderen makinenin iletinin kaynak Kuyruk Yöneticisi tarafından gönderildiği tarih ve saati gösterir.