System::TimeSpan::CompareTo-Methode

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

Vergleicht das aktuelle und das angegebene Objekt.

int System::TimeSpan::CompareTo(const SharedPtr<Object> &obj) const
ParameterTypBeschreibung
objconst SharedPtr<Object>&Das TimeSpan-Objekt, mit dem das aktuelle Objekt verglichen wird

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

Siehe auch

TimeSpan::CompareTo(TimeSpan) const method

Vergleicht das aktuelle und das angegebene Objekt.

int System::TimeSpan::CompareTo(TimeSpan value) const
ParameterTypBeschreibung
valueTimeSpanDas TimeSpan-Objekt, mit dem das aktuelle Objekt verglichen wird

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

Siehe auch