ArcGIS Pro 2.6 API Reference Guide
IsSimpleAsFeature Method (IGeometryEngine)
Example 

ArcGIS.Core.Geometry Namespace > IGeometryEngine Interface : 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
bool IsSimpleAsFeature( 
   Geometry geometry,
   bool forceIsSimple
)
Function IsSimpleAsFeature( _
   ByVal geometry As Geometry, _
   Optional 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 GeometryEngine.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, Windows 7

See Also

Reference

IGeometryEngine Interface
IGeometryEngine Members