Guid.Inequality(Guid, Guid) 運算子

定義

表示兩個指定之 Guid 物件的值是否不相等。Indicates whether the values of two specified Guid objects are not equal.

public:
 static bool operator !=(Guid a, Guid b);
public static bool operator != (Guid a, Guid b);
static member op_Inequality : Guid * Guid -> bool
Public Shared Operator != (a As Guid, b As Guid) As Boolean

參數

a
Guid

要比較的第一個物件。The first object to compare.

b
Guid

要比較的第二個物件。The second object to compare.

傳回

Boolean

如果 ab 不相等,則為 true;否則為 falsetrue if a and b are not equal; otherwise, false.

備註

這個運算子的對等方法是 Guid.Equals(Object)The equivalent method for this operator is Guid.Equals(Object)

適用於