MessagePropertyFilter.HashAlgorithm Vlastnost
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Získá nebo nastaví hodnotu, která určuje, zda se mají načíst HashAlgorithm informace o vlastnosti při přijetí nebo náhledu zprávy.
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
Hodnota vlastnosti
true
HashAlgorithm přijímat informace, jinak . false Výchozí hodnota je false.
- Atributy
Příklady
Následující příklad kódu ukazuje použití HashAlgorithm vlastnosti.
// 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);
Poznámky
Vlastnost HashAlgorithmMessage třídy identifikuje algoritmus hash Message Queuing používá při ověřování zpráv. Algoritmus hash se také používá při vytváření digitálního podpisu zprávy.