ArcGIS API for Windows Phone - Library Reference
DistanceAsync(Geometry,Geometry,DistanceParameters) Method
See Also  Send comments on this topic
ESRI.ArcGIS.Client.Tasks Namespace > GeometryService Class > DistanceAsync Method : DistanceAsync(Geometry,Geometry,DistanceParameters) Method

geometry1
The geometry from where the distance is to be measured.
geometry2
The geometry to which the distance is to be measured. The structure of geometry is same as the structure of the JSON geometry objects returned by the ArcGIS REST API. The use of simple syntax is not supported.
parameters
Parameters contains additional properties that defines how the distance task will be preformed.
Calculates the distance between two geometries.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub DistanceAsync( _
   ByVal geometry1 As Geometry, _
   ByVal geometry2 As Geometry, _
   ByVal parameters As DistanceParameters _
) 
C# 
public void DistanceAsync( 
   Geometry geometry1,
   Geometry geometry2,
   DistanceParameters parameters
)

Parameters

geometry1
The geometry from where the distance is to be measured.
geometry2
The geometry to which the distance is to be measured. The structure of geometry is same as the structure of the JSON geometry objects returned by the ArcGIS REST API. The use of simple syntax is not supported.
parameters
Parameters contains additional properties that defines how the distance task will be preformed.

Requirements

Target Platforms:Windows Phone 7

See Also

© ESRI, Inc. All Rights Reserved.