ArcGIS Pro 2.8 API Reference Guide
SetShapeType Method

ArcGIS.Core.Data Namespace > QueryDescription Class : SetShapeType Method
The type of shape to be set.
Sets the geometry type on the spatial column of the underlying single table or query layer if present. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void SetShapeType( 
   GeometryType shapeType
)
Public Sub SetShapeType( _
   ByVal shapeType As GeometryType _
) 

Parameters

shapeType
The type of shape to be set.
Exceptions
ExceptionDescription
A database-related exception has occurred.
Remarks
Calling this method when IsSpatialQuery returns false will cause an exception.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

QueryDescription Class
QueryDescription Members