System::TimeSpan::CompareTo methode

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

Vergelijkt het huidige en de opgegeven objecten.

int System::TimeSpan::CompareTo(const SharedPtr<Object> &obj) const
ParameterTypeBeschrijving
objconst SharedPtr<Object>&Het TimeSpan object om het huidige object mee te vergelijken

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

Zie ook

TimeSpan::CompareTo(TimeSpan) const method

Vergelijkt het huidige en de opgegeven objecten.

int System::TimeSpan::CompareTo(TimeSpan value) const
ParameterTypeBeschrijving
valueTimeSpanHet TimeSpan object om het huidige object mee te vergelijken

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

Zie ook