ArcGIS Pro 2.8 API Reference Guide
GetSpatialReference Method (QueryDescription)

ArcGIS.Core.Data Namespace > QueryDescription Class : GetSpatialReference Method
Gets the spatial reference. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public SpatialReference GetSpatialReference()
Public Function GetSpatialReference() As SpatialReference

Return Value

The spatial reference if IsSpatialQuery returns true. Otherwise, null is returned.
Exceptions
ExceptionDescription
A database-related exception has occurred.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

QueryDescription Class
QueryDescription Members