CngAlgorithm.Equality(CngAlgorithm, CngAlgorithm) 操作员

定义

确定两个 CngAlgorithm 对象是否指定了相同的算法名称。

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

参数

left
CngAlgorithm

一个指定算法名称的对象。

right
CngAlgorithm

要与 left 参数标识的对象进行比较的另一个对象。

返回

如果两个对象指定了相同的算法名称,则为 true;否则为 false

适用于