ArcGIS Pro 2.6 API Reference Guide
SetSpatialReference Method (QueryDescription)

ArcGIS.Core.Data Namespace > QueryDescription Class : SetSpatialReference Method
The input spatial reference.
Sets the spatial reference. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void SetSpatialReference( 
   SpatialReference spatialReference
)
Public Sub SetSpatialReference( _
   ByVal spatialReference As SpatialReference _
) 

Parameters

spatialReference
The input spatial reference.
Exceptions
ExceptionDescription
A database-related exception has occurred.
Remarks
If GetShapeColumnName returns an empty string or IsSpatialQuery returns false, calling this method will cause an exception.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

QueryDescription Class
QueryDescription Members