Calendar.CompareDateTime(DateTime) メソッド

定義

このカレンダーを DateTime オブジェクトと比較し、一方の日付と時刻が他方の日付と同じか、それ以降であるかを示します。

public:
 virtual int CompareDateTime(DateTime other) = CompareDateTime;
int CompareDateTime(DateTime const& other);
public int CompareDateTime(System.DateTimeOffset other);
function compareDateTime(other)
Public Function CompareDateTime (other As DateTimeOffset) As Integer

パラメーター

other
DateTime DateTimeOffset

現在の予定表と比較する DateTime オブジェクト。

戻り値

Int32

int

次のいずれかの値です。

戻り値説明
0 より小さい値このカレンダーの日付と時刻は、*other* よりも前です。
ゼロ日付と時刻は等しくなります。
0 より大きい値このカレンダーの日付と時刻は、*other* の日付と時刻より後です。

適用対象

こちらもご覧ください