ArcGIS Pro 2.8 API Reference Guide
CreatePolyline(Polyline,SpatialReference) Method

ArcGIS.Core.Geometry Namespace > PolylineBuilderEx Class > CreatePolyline Method : CreatePolyline(Polyline,SpatialReference) Method
The polyline to create the polyline.
(Optional) The SpatialReference. The default value is null. If spatialReference is null, then the spatial reference will be inherited from polyline.
Convenience method to create a new instance of the Polyline class.
Syntax
public static Polyline CreatePolyline( 
   Polyline polyline,
   SpatialReference spatialReference
)
Public Overloads Shared Function CreatePolyline( _
   ByVal polyline As Polyline, _
   Optional ByVal spatialReference As SpatialReference _
) As Polyline

Parameters

polyline
The polyline to create the polyline.
spatialReference
(Optional) The SpatialReference. The default value is null. If spatialReference is null, then the spatial reference will be inherited from polyline.

Return Value

Exceptions
ExceptionDescription
polyline is null.
Remarks
HasZ, HasM and HasID attributes are inherited from the input polyline.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

PolylineBuilderEx Class
PolylineBuilderEx Members
Overload List