語言

HashMembershipCondition(HashAlgorithm, Byte[]) 建構函式

定義

初始化一個新的類別實例 HashMembershipCondition ,使用決定成員資格的雜湊演算法與雜湊值。

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

用來計算組裝雜湊值的雜湊演算法。

value
Byte[]

就是要測試的雜湊值。

例外狀況

參數 hashAlg 為 null。

-或-

參數 value 為 null。

這個 hashAlg 參數並不是有效的雜湊演算法。

適用於