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


IMxdServerQuery.ComputeDistance Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMxdServerQuery Interface > IMxdServerQuery.ComputeDistance Method
ArcGIS Developer Help

IMxdServerQuery.ComputeDistance Method

Computes the distance between two points on the specified map. The result is in the map units of the specified map.

[Visual Basic .NET]
Public Function ComputeDistance ( _
    ByVal MapName As String, _
    ByVal fromPoint As IPoint, _
    ByVal toPoint As IPoint _
) As Double
[C#]
public double ComputeDistance (
    string MapName,
    IPoint fromPoint,
    IPoint toPoint
);
[C++]
HRESULT ComputeDistance(
  BSTR MapName,
  IPoint* fromPoint,
  IPoint* toPoint
);
[C++]
Parameters
MapName [in]

MapName is a parameter of type BSTR fromPoint [in]
fromPoint is a parameter of type IPoint* toPoint [in]
toPoint is a parameter of type IPoint*

Product Availability

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

See Also

IMxdServerQuery Interface