Message.HashAlgorithm 属性

定义

获取或设置消息队列在对消息进行身份验证或为消息创建数字签名时使用的哈希算法。

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

属性值

枚举值之 HashAlgorithm 一。 对于Windows XP,默认值为 SHA。 否则默认值为 MD5

属性

例外

将筛选消息队列以忽略 HashAlgorithm 该属性。

注解

在源计算机上,消息队列在为消息创建数字签名时使用哈希算法。 然后,目标队列管理器使用相同的哈希算法在收到消息时对消息进行身份验证。

由于 MD5 和 SHA-1 冲突问题,Microsoft建议使用 SHA-256。

适用于

另请参阅