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 _
)
[C#]
public HashMembershipCondition(
   HashAlgorithm hashAlg,
 byte[] value
);
[C++]
public: HashMembershipCondition(
   HashAlgorithm* hashAlg,
 unsigned char value __gc[]
);
[JScript]
public function HashMembershipCondition(
   hashAlg : HashAlgorithm,
 value : Byte[]
);

Parameters

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

Exceptions

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

-or-

The value parameter is a null reference (Nothing).

ArgumentException The hashAlg parameter is not a valid hash algorithm.

Requirements

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

Show: