ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Core.Geometry Namespace / SpatialReferenceBuilder Class / CreateSpatialReference Method / CreateSpatialReference(String,Int32) Method
The well-known text that represents the spatial reference.
The vertical coordinate system well-known ID.

In This Topic
    CreateSpatialReference(String,Int32) Method
    In This Topic
    Convenience method to create a new instance of the SpatialReference class.
    Syntax
    public static SpatialReference CreateSpatialReference( 
       string wkt,
       int vcsWkid
    )
    Public Overloads Shared Function CreateSpatialReference( _
       ByVal wkt As String, _
       ByVal vcsWkid As Integer _
    ) As SpatialReference

    Parameters

    wkt
    The well-known text that represents the spatial reference.
    vcsWkid
    The vertical coordinate system well-known ID.

    Return Value

    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also