System::TimeSpan::CompareTo méthode

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

Compare l’objet actuel et l’objet spécifié.

int System::TimeSpan::CompareTo(const SharedPtr<Object> &obj) const
ParamètreTypeDescription
objconst SharedPtr<Object>&L’objet TimeSpan avec lequel comparer l’objet actuel

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

Voir aussi

TimeSpan::CompareTo(TimeSpan) const method

Compare l’objet actuel et l’objet spécifié.

int System::TimeSpan::CompareTo(TimeSpan value) const
ParamètreTypeDescription
valueTimeSpanL’objet TimeSpan avec lequel comparer l’objet actuel

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

Voir aussi