NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Message.HashAlgorithm

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

Property Value

One of the HashAlgorithm values that identifies the hashing algorithm Message Queuing uses when authenticating messages. The default is MD5.

Exceptions

Exception Type Condition
InvalidOperationException The message queue is filtered not to read the HashAlgorithm property.

Remarks

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.

Example

See Also

Message Class | Message Members | System.Messaging Namespace | UseAuthentication