Visual Basic (Declaration) | |
---|---|
Public Overloads Function LengthsTaskAsync( _ ByVal graphics As IList(Of Graphic), _ ByVal lengthUnit As Nullable(Of LinearUnit), _ ByVal calculationType As CalculationType, _ ByVal cancellationToken As CancellationToken _ ) As Task(Of LengthsResult) |
C# | |
---|---|
public Task<LengthsResult> LengthsTaskAsync( IList<Graphic> graphics, Nullable<LinearUnit> lengthUnit, CalculationType calculationType, CancellationToken cancellationToken ) |
CalculationType.Planar is supported in ArcGIS Server v9.x+ services. CalculationType.Geodesic is supported in ArcGIS Server v10.0+ services. CalculationType.PreseverShape is supported in ArcGIS Server v10.1+ services.
Parameters
- graphics
- The graphics used to calculate lengths.
- lengthUnit
- The length unit in which perimeters of polygons will be calculated. If unit is not specified, the units are derived from the Spatial Reference of the geometry.
- calculationType
- The type of calculation to perform. e.g.(Planar,Geodesic,PreserveShape).
- cancellationToken
- The cancellation token.
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8