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

In This Topic
    ClearRootNodes Method
    In This Topic
    Clears the root nodes for the link chart map view. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Shared Sub ClearRootNodes( _
       ByVal mapView As MapView _
    ) 
    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(() =>
      {
        //Assuming mapview is a link chart view
        MapView.Active.ClearRootNodes();
      });
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.4 or higher.
    See Also