IdentityReference.Equality(IdentityReference, IdentityReference) 运算符

定义

比较两个 IdentityReference 对象以确定它们是否相等。 如果这两个对象具有与 Value 属性返回的规范名称表示形式相同的规范名称表示形式,或是都为 null,则将它们视为相等。

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

参数

left
IdentityReference

用于相等比较的左 IdentityReference 操作数。 此参数可以为 null

right
IdentityReference

用于相等比较的右 IdentityReference 操作数。 此参数可以为 null

返回

Boolean

如果 leftright 相等,则为 true;否则为 false

注解

此运算符 IdentityReference.Equals的等效方法是 。

适用于