MessagePropertyFilter.AttachSenderId Ö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ı AttachSenderId belirten bir değer alır veya ayarlar.
public:
property bool AttachSenderId { bool get(); void set(bool value); };
[System.Messaging.MessagingDescription("MsgAttachSenderId")]
public bool AttachSenderId { get; set; }
[<System.Messaging.MessagingDescription("MsgAttachSenderId")>]
member this.AttachSenderId : bool with get, set
Public Property AttachSenderId As Boolean
Özellik Değeri
true
bilgi almak AttachSenderId için; aksi takdirde , false
. Varsayılan değer: false
.
- Öznitelikler
Örnekler
Aşağıdaki kod örneği özelliğinin AttachSenderId kullanımını gösterir.
// Set the queue's MessageReadPropertyFilter property
// to enable the message's AttachSenderId property.
queue->MessageReadPropertyFilter->AttachSenderId = 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
// AttachSenderId property.
Console::WriteLine("Message.AttachSenderId: {0}",
orderMessage->AttachSenderId);
// Set the queue's MessageReadPropertyFilter property to enable the
// message's AttachSenderId property.
queue.MessageReadPropertyFilter.AttachSenderId = 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 AttachSenderId property.
Console.WriteLine("Message.AttachSenderId: {0}",
orderMessage.AttachSenderId);
Açıklamalar
AttachSenderId sınıfının özelliği, öğesinin Message iletiye Message.SenderId eklenip eklenmeyeceğini belirtir. Message.SenderId, Message Queuing tarafından ayarlanır ve alıcı Kuyruk Yöneticisi tarafından, gönderenin kuyruğa erişim haklarına sahip olup olmadığını doğrulamak için kullanılır.