Share via


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 參數不是有效的雜湊演算法。

適用於