Explode(Layer,IEnumerable<Int64>,Boolean) Method
Explode features.
Edit Operation Explode Features
var explodeFeatures = new EditOperation() { Name = "Explode Features" };
//Take a multipart and convert it into one feature per part
//Provide a list of ids to convert multiple
explodeFeatures.Explode(featureLayer, new List<long>() { oid }, true);
//Execute to execute the operation
//Must be called within QueuedTask.Run
if (!explodeFeatures.IsEmpty)
{
var result = explodeFeatures.Execute(); //Execute and ExecuteAsync will return true if the operation was successful and false if not
}
//or use async flavor
//await explodeFeatures.ExecuteAsync();
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.