ArcGIS Pro 2.6 API Reference Guide
PolylineBuilder Constructor(Polyline)
Example 

ArcGIS.Core.Geometry Namespace > PolylineBuilder Class > PolylineBuilder Constructor : PolylineBuilder Constructor(Polyline)
Polyline used for construction of the geometry of this builder.
Initializes a new instance of the PolylineBuilder class. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public PolylineBuilder( 
   Polyline polyline
)
Public Function New( _
   ByVal polyline As Polyline _
)

Parameters

polyline
Polyline used for construction of the geometry of this builder.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
polyline is null.
Example
// Builder constructors need to run on the MCT.
ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.Run(() =>
{
  using (PolylineBuilder polylineBuilder = new PolylineBuilder(polyline))
  {
    polylineBuilder.ReverseOrientation();
    Polyline reversedPolyline = polylineBuilder.ToGeometry();
  }
});
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

PolylineBuilder Class
PolylineBuilder Members
Overload List