This document is archived and information here might be outdated.  Recommended version.


ITimeDuration.Compare Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IT > ITimeDuration Interface > ITimeDuration.Compare Method
ArcGIS Developer Help

ITimeDuration.Compare Method

Compares this time duration to the other time duration. Returns -1 if this time duration's value is less, 1 if greater, and 0 otherwise.

[Visual Basic .NET]
Public Function Compare ( _
    ByVal otherDuration As ITimeDuration _
) As Integer
[C#]
public int Compare (
    ITimeDuration otherDuration
);
[C++]
HRESULT Compare(
  ITimeDuration* otherDuration
);
[C++]
Parameters
otherDuration [in]

otherDuration is a parameter of type ITimeDuration*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

ITimeDuration Interface