Parameters
- geometry
- The input geometry.
Return Value
The calculated length in the same units as the geometry's spatial reference unit. If the geometry is empty, then zero is returned.
Exception | Description |
---|---|
System.ArgumentNullException | Geometry is null. |
System.NotImplementedException | The method is not implemented for GeometryBag or Multipatch. |
System.InvalidOperationException | The geometry is not Z-Aware. |
ArcGIS.Core.Geometry.Exceptions.OperationException | Cannot do 3D operations on curve segments. |
ArcGIS.Core.Geometry.Exceptions.GeometryObjectException | Geometry is not a polyline or polygon. |
Target Platforms: Windows 11, Windows 10