System::TimeSpan::CompareTo-metod

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

Jämför det aktuella och det angivna objektet.

int System::TimeSpan::CompareTo(const SharedPtr<Object> &obj) const
ParameterTypeBeskrivning
objconst SharedPtr<Object>&Det TimeSpan-objektet att jämföra det aktuella objektet med

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

Se även

TimeSpan::CompareTo(TimeSpan) const method

Jämför det aktuella och det angivna objektet.

int System::TimeSpan::CompareTo(TimeSpan value) const
ParameterTypeBeskrivning
valueTimeSpanDet TimeSpan-objektet att jämföra det aktuella objektet med

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

Se även