System.Messaging Reference (Document! X Sample)



HashAlgorithm Property (DefaultPropertiesToSend)
Gets or sets the hashing algorithm used when authenticating messages or creating a digital signature for a message.
Syntax
'Declaration
 
<DefaultValueAttribute()>
<MessagingDescriptionAttribute("Identifies the hashing algorithm MSMQ uses when authenticating messages.")>
Public Property HashAlgorithm As HashAlgorithm
'Usage
 
Dim instance As DefaultPropertiesToSend
Dim value As HashAlgorithm
 
instance.HashAlgorithm = value
 
value = instance.HashAlgorithm
[DefaultValue()]
[MessagingDescription("Identifies the hashing algorithm MSMQ uses when authenticating messages.")]
public HashAlgorithm HashAlgorithm {get; set;}
[DefaultValue()]
[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. The default is MD5.
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