IdentityReference.Inequality(IdentityReference, IdentityReference) 运算符
定义
比较两个 IdentityReference 对象以确定它们是否不相等。Compares two IdentityReference objects to determine whether they are not equal. 如果它们的规范名称表示形式与 Value 属性返回的表示形式不同,或其中一个对象为 null 而另一个对象不是,它们将被视为不相等。They are considered not equal if they have different canonical name representations than the one returned by the Value property or if one of the objects is null and the other is not.
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 op_Inequality : System.Security.Principal.IdentityReference * System.Security.Principal.IdentityReference -> bool
Public Shared Operator != (left As IdentityReference, right As IdentityReference) As Boolean
参数
- left
- IdentityReference
用于不相等比较的左 IdentityReference 操作数。The left IdentityReference operand to use for the inequality comparison. 此参数可以为 null。This parameter can be null.
- right
- IdentityReference
用于不相等比较的右 IdentityReference 操作数。The right IdentityReference operand to use for the inequality comparison. 此参数可以为 null。This parameter can be null.
返回
如果 left 和 right 不相等,则为 true;否则为 false。true if left and right are not equal; otherwise, false.
注解
此运算符的等效方法为 IdentityReference.Equals 。The equivalent method for this operator is IdentityReference.Equals.