ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / KnowledgeGraphMappingExtensions Class / ClearRootNodes Method
Example Version

ClearRootNodes Method
Clears the root nodes for the link chart map view. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public static void ClearRootNodes( 
   MapView mapView
)

Parameters

mapView
Exceptions
ExceptionDescription
Map cannot be null.
Map is not a link chart.
This method or property must be called within the lambda passed to QueuedTask.Run.
Example
Clear Root Nodes
await QueuedTask.Run(() =>
{
  MapView.Active.ClearRootNodes();
});
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3.4 or higher.
See Also