HashAlgorithmName.Equality(HashAlgorithmName, HashAlgorithmName) 操作员
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定两个指定的 HashAlgorithmName 对象是否相等。
public:
static bool operator ==(System::Security::Cryptography::HashAlgorithmName left, System::Security::Cryptography::HashAlgorithmName right);
C#
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
要比较的第一个对象。
- right
- HashAlgorithmName
要比较的第二个对象。
如果 left
和 right
具有相同的 Name 值,则为 true
;否则为 false
。
方法 Equality 定义值的相等运算符的 HashAlgorithmName 运算。
产品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.3, 1.4, 1.6, 2.0, 2.1 |