Condividi tramite


MessagePropertyFilter.HashAlgorithm Proprietà

Definizione

Ottiene o imposta un valore che indica se recuperare HashAlgorithm le informazioni sulle proprietà durante la ricezione o la visualizzazione di un messaggio.

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

Valore della proprietà

true per ricevere HashAlgorithm informazioni; in caso contrario, false. Il valore predefinito è false.

Attributi

Esempio

Nell'esempio di codice seguente viene illustrato l'uso della HashAlgorithm proprietà .

// 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);

Commenti

La HashAlgorithm proprietà della Message classe identifica l'algoritmo di accodamento messaggi hash utilizzato per l'autenticazione dei messaggi. L'algoritmo hash viene usato anche durante la creazione di una firma digitale per un messaggio.

Si applica a

Vedi anche