HashAlgorithmName.Equality(HashAlgorithmName, HashAlgorithmName) 運算子

定義

判斷指定的兩個 HashAlgorithmName 物件是否相等。Determines whether two specified HashAlgorithmName objects are equal.

public:
 static bool operator ==(System::Security::Cryptography::HashAlgorithmName left, System::Security::Cryptography::HashAlgorithmName right);
public static bool operator == (System.Security.Cryptography.HashAlgorithmName left, System.Security.Cryptography.HashAlgorithmName right);
static member ( = ) : System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.HashAlgorithmName -> bool
Public Shared Operator == (left As HashAlgorithmName, right As HashAlgorithmName) As Boolean

參數

left
HashAlgorithmName

要比較的第一個物件。The first object to compare.

right
HashAlgorithmName

要比較的第二個物件。The second object to compare.

傳回

Boolean

如果 leftrightName 值相同則為 true;否則為 falsetrue if both left and right have the same Name value; otherwise, false.

備註

Equality方法會定義值的等號比較運算子運算 HashAlgorithmNameThe Equality method defines the operation of the equality operator for HashAlgorithmName values.

適用於