Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
// 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(); } });
Target Platforms: Windows 10, Windows 8.1, Windows 7