CngAlgorithm.Equals 方法

定义

比较两个 CngAlgorithm 对象。

重载

Equals(CngAlgorithm)

将指定的 CngAlgorithm 对象与当前的 CngAlgorithm 对象进行比较。

Equals(Object)

将指定的对象与当前的 CngAlgorithm 对象进行比较。

Equals(CngAlgorithm)

将指定的 CngAlgorithm 对象与当前的 CngAlgorithm 对象进行比较。

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

参数

other
CngAlgorithm

要与当前的 CngAlgorithm 对象进行比较的对象。

返回

Boolean

如果 other 参数指定的算法与当前对象的算法相同,则为 true;否则为 false

实现

适用于

Equals(Object)

将指定的对象与当前的 CngAlgorithm 对象进行比较。

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

要与当前的 CngAlgorithm 对象进行比较的对象。

返回

Boolean

如果 obj 参数是一个指定与当前对象相同算法的 CngAlgorithm,则为 true;否则为 false

适用于