طريقة System::TimeSpan::CompareTo

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

يقارن الكائن الحالي بالكائن المحدد.

int System::TimeSpan::CompareTo(const SharedPtr<Object> &obj) const
ParameterTypeالوصف
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
ParameterTypeالوصف
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

انظر أيضًا