ArcGIS API for Silverlight - Library Reference
AreasAndLengthsAsync(IList<Graphic>,Nullable<LinearUnit>,Nullable<LinearUnit>,CalculationType,Object) Method
See Also  Send comments on this topic
ESRI.ArcGIS.Client.Tasks Namespace > GeometryService Class > AreasAndLengthsAsync Method : AreasAndLengthsAsync(IList<Graphic>,Nullable<LinearUnit>,Nullable<LinearUnit>,CalculationType,Object) Method

graphics
The graphics used to calculate areas and 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 first geometry.
areaUnit
The area unit in which areas of polygons will be calculated. If unit is not specified, the units are derived from the spatial reference of the first geometry.
calculationType
The type of calculation to be preformed. e.g.(Planar,Geodesic,PreserveShape)
userToken
A user-defined object that is passed to the method invoked.
Calculates the areas and lengths of each specified polygon. Raises the GeometryService.AreasAndLengthsCompleted event on success, or the TaskBase.Failed event on failure.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub AreasAndLengthsAsync( _
   ByVal graphics As IList(Of Graphic), _
   ByVal lengthUnit As Nullable(Of LinearUnit), _
   ByVal areaUnit As Nullable(Of LinearUnit), _
   ByVal calculationType As CalculationType, _
   Optional ByVal userToken As Object _
) 

Remarks

CalculationType.Planar is supported in ArcGIS Server v9.x+ services. CalculationType.Geodesic is supported in ArcGIS Server v10.1+ services. CalculationType.PreseverShape is supported in ArcGIS Server v10.1+ services.

Parameters

graphics
The graphics used to calculate areas and 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 first geometry.
areaUnit
The area unit in which areas of polygons will be calculated. If unit is not specified, the units are derived from the spatial reference of the first geometry.
calculationType
The type of calculation to be preformed. e.g.(Planar,Geodesic,PreserveShape)
userToken
A user-defined object that is passed to the method invoked.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7

See Also

© ESRI, Inc. All Rights Reserved.