MessagePropertyFilter.HashAlgorithm Właściwość
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Pobiera lub ustawia wartość wskazującą, czy pobierać HashAlgorithm informacje o właściwości podczas odbierania lub podglądu komunikatu.
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
Wartość właściwości
true
aby otrzymywać HashAlgorithm informacje; w przeciwnym razie false
. Wartość domyślna to false
.
- Atrybuty
Przykłady
Poniższy przykład kodu przedstawia użycie HashAlgorithm właściwości.
// 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);
Uwagi
Właściwość HashAlgorithmMessage klasy identyfikuje algorytm wyznaczania wartości skrótu podczas kolejkowania komunikatów podczas uwierzytelniania komunikatów. Algorytm tworzenia skrótu jest również używany podczas tworzenia podpisu cyfrowego dla komunikatu.
Dotyczy
Zobacz też
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla