HashMembershipCondition(HashAlgorithm, Byte[]) 构造函数

定义

用确定成员身份的哈希算法和哈希值初始化 HashMembershipCondition 类的新实例。

public:
 HashMembershipCondition(System::Security::Cryptography::HashAlgorithm ^ hashAlg, cli::array <System::Byte> ^ value);
public HashMembershipCondition (System.Security.Cryptography.HashAlgorithm hashAlg, byte[] value);
new System.Security.Policy.HashMembershipCondition : System.Security.Cryptography.HashAlgorithm * byte[] -> System.Security.Policy.HashMembershipCondition
Public Sub New (hashAlg As HashAlgorithm, value As Byte())

参数

hashAlg
HashAlgorithm

将用于计算程序集的哈希值的哈希算法。

value
Byte[]

要进行测试的哈希值。

例外

hashAlg 参数为 null

- 或 -

value 参数为 null

hashAlg 参数不是有效的哈希算法。

适用于