語言

Type.Inequality(Type, Type) 運算子

定義

表示兩個 Type 物體是否不相等。

public:
 static bool operator !=(Type ^ left, Type ^ right);
public static bool operator !=(Type? left, Type? right);
public static bool operator !=(Type left, Type right);
static member op_Inequality : Type * Type -> bool
Public Shared Operator != (left As Type, right As Type) As Boolean

參數

left
Type

第一個比較的對象。

right
Type

第二個比較物件。

傳回

true若 left 不等於;right否則 。 false

適用於