HashMembershipCondition Constructor (HashAlgorithm, Byte[])

 

Initializes a new instance of the HashMembershipCondition class with the hash algorithm and hash value that determine membership.

Namespace:   System.Security.Policy
Assembly:  mscorlib (in mscorlib.dll)

public HashMembershipCondition(
	HashAlgorithm hashAlg,
	byte[] value
)

Parameters

hashAlg
Type: System.Security.Cryptography.HashAlgorithm

The hash algorithm to use to compute the hash value for the assembly.

value
Type: System.Byte[]

The hash value for which to test.

Exception Condition
ArgumentNullException

The hashAlg parameter is null.

-or-

The value parameter is null.

ArgumentException

The hashAlg parameter is not a valid hash algorithm.

.NET Framework
Available since 1.1
Return to top
Show: