ArcGIS Pro 2.6 API Reference Guide
CreateSpatialReference(String,Int32) Method

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.
Convenience method to create a new instance of the SpatialReference class.
Syntax
public static SpatialReference CreateSpatialReference( 
   string wkt,
   int vWkid
)
Public Overloads Shared Function CreateSpatialReference( _
   ByVal wkt As String, _
   ByVal vWkid As Integer _
) As SpatialReference

Parameters

wkt
The Well-known text that represents the spatial reference.
vWkid
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 10, Windows 8.1, Windows 7

See Also

Reference

SpatialReferenceBuilder Class
SpatialReferenceBuilder Members
Overload List