HashMembershipCondition Constructor (HashAlgorithm, Byte[])

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: