This documentation is archived and is not being maintained.

HashMembershipCondition Constructor

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

[Visual Basic]
Public Sub New( _
   ByVal hashAlg As HashAlgorithm, _
   ByVal value() As Byte _
public HashMembershipCondition(
   HashAlgorithm hashAlg,
 byte[] value
public: HashMembershipCondition(
   HashAlgorithm* hashAlg,
 unsigned char value __gc[]
public function HashMembershipCondition(
   hashAlg : HashAlgorithm,
 value : Byte[]


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


Exception Type Condition
ArgumentNullException The hashAlg parameter is a null reference (Nothing in Visual Basic).


The value parameter is a null reference (Nothing).

ArgumentException The hashAlg parameter is not a valid hash algorithm.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

HashMembershipCondition Class | HashMembershipCondition Members | System.Security.Policy Namespace