MessagePropertyFilter.HashAlgorithm Ö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.
bir iletiyi alırken veya göz atarken özellik bilgilerinin alınıp alınmayacağını HashAlgorithm belirten bir değer alır veya ayarlar.
public:
property bool HashAlgorithm { bool get(); void set(bool value); };
[System.Messaging.MessagingDescription("MsgHashAlgorithm")]
public bool HashAlgorithm { get; set; }
[<System.Messaging.MessagingDescription("MsgHashAlgorithm")>]
member this.HashAlgorithm : bool with get, set
Public Property HashAlgorithm As Boolean
Özellik Değeri
true bilgilerini almak HashAlgorithm için; aksi takdirde , false. Varsayılan değer: false.
- Öznitelikler
Örnekler
Aşağıdaki kod örneği özelliğinin HashAlgorithm kullanımını gösterir.
// Set the queue's MessageReadPropertyFilter property
// to enable the message's HashAlgorithm property.
queue->MessageReadPropertyFilter->HashAlgorithm = 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
// HashAlgorithm property.
Console::WriteLine("Message.HashAlgorithm: {0}",
orderMessage->HashAlgorithm);
// Set the queue's MessageReadPropertyFilter property to enable the
// message's HashAlgorithm property.
queue.MessageReadPropertyFilter.HashAlgorithm = 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 HashAlgorithm property.
Console.WriteLine("Message.HashAlgorithm: {0}",
orderMessage.HashAlgorithm);
Açıklamalar
HashAlgorithm sınıfının özelliği, Message Queuing'in Message iletilerin kimliğini doğrularken kullandığı karma algoritmasını tanımlar. Karma algoritması, ileti için dijital imza oluştururken de kullanılır.