System::TimeSpan::CompareTo メソッド

TimeSpan::CompareTo(const SharedPtr<Object>&) const method

現在のオブジェクトと指定されたオブジェクトを比較します。

int System::TimeSpan::CompareTo(const SharedPtr<Object> &obj) const
パラメーター説明
objconst SharedPtr<Object>&現在のオブジェクトと比較するための TimeSpan オブジェクトです

ReturnValue

-1 if the current object represents the interval that is shorter than value; 0 if the current object represents the interval that is equal to value; 1 if the current object represents the interval that is longer than value

参照

TimeSpan::CompareTo(TimeSpan) const method

現在のオブジェクトと指定されたオブジェクトを比較します。

int System::TimeSpan::CompareTo(TimeSpan value) const
パラメーター説明
valueTimeSpan現在のオブジェクトと比較するための TimeSpan オブジェクトです

ReturnValue

-1 if the current object represents the interval that is shorter than value; 0 if the current object represents the interval that is equal to value; 1 if the current object represents the interval that is longer than value

参照