The HashAlgorithm property specifies the hash algorithm used by MSMQ when authenticating messages.
| Type: | Long |
| Run time: | read-write |
object.HashAlgorithm
| Syntax Element | Description |
| object | Message (MSMQMessage) object that represents the message. |
This property can be set to any of the values defined by the ALG_ID data type in wincrypt.h (the default is CALG_MD5) or in the MSMQ_CALG enumeration.
The MSMQ run-time code uses the hashing algorithm when creating a digital signature and when authenticating the message.
For information on what MSMQ does to authenticate messages, see How MSMQ Authenticates Messages.