ArcGIS Pro 3.4 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 static void ClearRootNodes( 
       MapView mapView
    )
    Public Shared Sub ClearRootNodes( _
       ByVal mapView As 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