طريقة 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

انظر أيضًا