Message.HashAlgorithm Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the hashing algorithm that Message Queuing uses when authenticating a message or creating a digital signature for a message.
public:
property System::Messaging::HashAlgorithm HashAlgorithm { System::Messaging::HashAlgorithm get(); void set(System::Messaging::HashAlgorithm value); };
[System.Messaging.MessagingDescription("MsgHashAlgorithm")]
public System.Messaging.HashAlgorithm HashAlgorithm { get; set; }
[<System.Messaging.MessagingDescription("MsgHashAlgorithm")>]
member this.HashAlgorithm : System.Messaging.HashAlgorithm with get, set
Public Property HashAlgorithm As HashAlgorithm
One of the HashAlgorithm enumeration values. For Windows XP, the default is SHA
. Otherwise, the default is MD5
.
- Attributes
The message queue is filtered to ignore the HashAlgorithm property.
On the source computer, Message Queuing uses the hashing algorithm when creating a digital signature for a message. The target Queue Manager then uses the same hashing algorithm to authenticate the message when it is received.
Due to collision problems with MD5 and SHA1, Microsoft recommends SHA256.
Product | Versions |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: