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

定义

用确定成员身份的哈希算法和哈希值初始化 HashMembershipCondition 类的新实例。Initializes a new instance of the HashMembershipCondition class with the hash algorithm and hash value that determine membership.

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

将用于计算程序集的哈希值的哈希算法。The hash algorithm to use to compute the hash value for the assembly.

value
Byte[]

要进行测试的哈希值。The hash value for which to test.

例外

hashAlg 参数为 nullThe hashAlg parameter is null.

- 或 --or- value 参数为 nullThe value parameter is null.

hashAlg 参数不是有效的哈希算法。The hashAlg parameter is not a valid hash algorithm.

适用于