共用方式為


TimeOnly.Inequality(TimeOnly, TimeOnly) 運算子

定義

判斷 TimeOnly 的兩個指定執行個體是否不相等。

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

參數

left
TimeOnly

要比較的第一個物件。

right
TimeOnly

要比較的第二個物件。

傳回

Boolean

true 如果向左和右不代表相同時間則為 ;否則為 false

適用於