ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Data Namespace / QueryDescription Class / GetSpatialReference Method

In This Topic
    GetSpatialReference Method (QueryDescription)
    In This Topic
    Gets the spatial reference. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Function GetSpatialReference() As SpatialReference
    public SpatialReference GetSpatialReference()

    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 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also