ArcGIS Pro 2.7 API Reference Guide
IsSimpleAsFeature Method (GeometryEngine)
Example 

ArcGIS.Core.Geometry Namespace > GeometryEngine Class : IsSimpleAsFeature Method
The geometry to be tested.
When true, the geometry will be tested for simplicity even if it has been already tested or simplified before. Geometry has a non-persisted internal flag that is set by IsSimpleAsFeature or SimplifyAsFeature calls. The flag is used to avoid computations if the state of the geometry is known.
Indicates whether this geometry is known to be topologically consistent according to the geometry type for storage in a database.
Syntax
public bool IsSimpleAsFeature( 
   Geometry geometry,
   bool forceIsSimple
)
Public Function IsSimpleAsFeature( _
   ByVal geometry As Geometry, _
   ByVal forceIsSimple As Boolean _
) As Boolean

Parameters

geometry
The geometry to be tested.
forceIsSimple
When true, the geometry will be tested for simplicity even if it has been already tested or simplified before. Geometry has a non-persisted internal flag that is set by IsSimpleAsFeature or SimplifyAsFeature calls. The flag is used to avoid computations if the state of the geometry is known.

Return Value

Returns true if the geometry is simple. Otherwise, returns false.
Exceptions
ExceptionDescription
Geometry is null or empty.
The method is not implemented for GeometryBag.
Remarks
Note that NaN z-values are not taken into account when determining if the geometry is topologically consistent. You should call ReplaceNaNZs on any geometry prior to saving it into a geodatabase.
Example
// create the polygon
List<MapPoint> pts = new List<MapPoint>();
pts.Add(MapPointBuilder.CreateMapPoint(1.0, 1.0, SpatialReferences.WGS84));
pts.Add(MapPointBuilder.CreateMapPoint(1.0, 2.0, SpatialReferences.WGS84));
pts.Add(MapPointBuilder.CreateMapPoint(2.0, 2.0, SpatialReferences.WGS84));
pts.Add(MapPointBuilder.CreateMapPoint(2.0, 1.0, SpatialReferences.WGS84));

Polygon polygon = PolygonBuilder.CreatePolygon(pts);
// ensure it is simple
bool isSimple = GeometryEngine.Instance.IsSimpleAsFeature(polygon);

// create the spatial reference to project to
SpatialReference northPole = SpatialReferenceBuilder.CreateSpatialReference(102018);   // north pole stereographic 

// project
Geometry geometry = GeometryEngine.Instance.Project(polygon, northPole);
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

GeometryEngine Class
GeometryEngine Members