HashAlgorithm Property (Message)
Gets or sets the hashing algorithm that Message Queuing uses when authenticating a message or creating a digital signature for a message.
Syntax
'Declaration <ReadOnlyAttribute(True)> <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> <MessagingDescriptionAttribute("Identifies the hashing algorithm MSMQ uses when authenticating messages.")> Public Property HashAlgorithm As HashAlgorithm
'Usage Dim instance As Message Dim value As HashAlgorithm instance.HashAlgorithm = value value = instance.HashAlgorithm
[ReadOnly(true)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [MessagingDescription("Identifies the hashing algorithm MSMQ uses when authenticating messages.")] public HashAlgorithm HashAlgorithm {get; set;}
[ReadOnly(true)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [MessagingDescription("Identifies the hashing algorithm MSMQ uses when authenticating messages.")] public: property HashAlgorithm HashAlgorithm { HashAlgorithm get(); void set ( HashAlgorithm value); }
Property Value
One of the HashAlgorithm enumeration values. For Windows XP, the default is SHA. Otherwise, the default is MD5.Exceptions
Exception | Description |
---|---|
System.InvalidOperationException | The message queue is filtered to ignore the HashAlgorithm property. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also