CngProperty.Equality(CngProperty, CngProperty) 运算符

定义

确定两个 CngProperty 对象是否指定相同的属性名、值和选项。

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

参数

left
CngProperty

一个对象,指定下一代加密技术 (CNG) 密钥或提供程序的属性。

right
CngProperty

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

返回

Boolean

如果两个对象指定相同的属性,则为 true;否则为 false

注解

CngProperty 如果对象的名称、值和选项等效,则被视为相等。 名称比较以区分大小写的方式执行。

此运算符 CngProperty.Equals(CngProperty)的等效方法是 。

适用于