HashAlgorithmName.Equals 方法

定义

返回一个值,该值指示两个 HashAlgorithmName 值是否相等。Returns a value that indicates whether two HashAlgorithmName values are equal.

重载

Equals(Object)

返回一个指示当前实例是否与指定对象相等的值。Returns a value that indicates whether the current instance and a specified object are equal.

Equals(HashAlgorithmName)

返回一个值,该值指示两个 HashAlgorithmName 实例是否相等。Returns a value that indicates whether two HashAlgorithmName instances are equal.

Equals(Object)

返回一个指示当前实例是否与指定对象相等的值。Returns a value that indicates whether the current instance and a specified object are equal.

public:
 override bool Equals(System::Object ^ obj);
public override bool Equals (object? obj);
public override bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

参数

obj
Object

要与当前实例进行比较的对象。The object to compare with the current instance.

返回

Boolean

如果 objHashAlgorithmName 对象且它的 Name 属性等于当前实例的属性,则为 truetrue if obj is a HashAlgorithmName object and its Name property is equal to that of the current instance. 比较是有序的且区分大小写。The comparison is ordinal and case-sensitive.

适用于

Equals(HashAlgorithmName)

返回一个值,该值指示两个 HashAlgorithmName 实例是否相等。Returns a value that indicates whether two HashAlgorithmName instances are equal.

public:
 virtual bool Equals(System::Security::Cryptography::HashAlgorithmName other);
public bool Equals (System.Security.Cryptography.HashAlgorithmName other);
override this.Equals : System.Security.Cryptography.HashAlgorithmName -> bool
Public Function Equals (other As HashAlgorithmName) As Boolean

参数

other
HashAlgorithmName

要与当前实例进行比较的对象。The object to compare with the current instance.

返回

Boolean

如果 otherName 属性等于当前实例的属性,则为 truetrue if the Name property of other is equal to that of the current instance. 比较是有序的且区分大小写。The comparison is ordinal and case-sensitive.

实现

适用于