IdentityReference.Inequality(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 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 運算元。 這個參數可以是 null

right
IdentityReference

用於不相等比較的右 IdentityReference 運算元。 這個參數可以是 null

傳回

如果 leftright 不相等,則為 true;否則為 false

備註

這個運算子 IdentityReference.Equals 的對等方法是 。

適用於