Parameters
- geometry
- The input geometry. Cannot be null and its spatial reference cannot be null.
Return Value
Length of the geometry in meters. If the geometry is empty, then zero is returned.
| Exception | Description |
|---|---|
| System.ArgumentNullException | Geometry is null or geometry's spatial reference is null. |
| System.NotImplementedException | The method is not implemented for GeometryBag or Multipatch. |
| ArcGIS.Core.Geometry.Exceptions.ProjectionEngineException | Geometry is missing a spatial reference. |
| System.NotImplementedException | Spatial reference of geometryis an image coordinate system. |
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)