Gets or sets the hashing algorithm used when authenticating messages.
[Visual Basic] Overridable Public Property HashAlgorithm As HashAlgorithm [C#] public HashAlgorithm HashAlgorithm {virtual get; virtual set;} [C++] public: __property virtual HashAlgorithm get_HashAlgorithm(); public: __property virtual void set_HashAlgorithm(HashAlgorithm); [JScript] public function get HashAlgorithm() : HashAlgorithm; public function set HashAlgorithm(HashAlgorithm);
One of the HashAlgorithm values that identifies the hashing algorithm Message Queuing uses when authenticating messages. The default is MD5.
Exception Type | Condition |
---|---|
InvalidOperationException | The message queue is filtered not to read the HashAlgorithm property. |
HashAlgorithm provides access to the HashAlgorithm property of the Message Queuing MSMQMessage object. The Message Queuing run-time .dll on the source computer uses the hashing algorithm when it creates a digital signature for a message and when authenticating the message.
Message Class | Message Members | System.Messaging Namespace | UseAuthentication