DateOnly.Inequality(DateOnly, DateOnly) 操作员

定义

确定 DateOnly 的两个指定的实例是否不等。

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

参数

left
DateOnly

要比较的第一个对象。

right
DateOnly

要比较的第二个对象。

返回

true 如果向左和向右不表示同一日期,则为 ;否则为 false

适用于