ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Desktop.KnowledgeGraph Namespace / KnowledgeGraphInvestigationView Class / Investigation Property
Example

In This Topic
    Investigation Property
    In This Topic
    Gets the Knowledge Graph investigation associated with the investigation view.
    Syntax
    public KnowledgeGraphInvestigation Investigation {get;}
    Public ReadOnly Property Investigation As KnowledgeGraphInvestigation
    Example
    Get the active KnowledgeGraphInvestigationView, KnowledgeGraphInvestigation
    // access the currently active knowledge graph investigation view
    KnowledgeGraphInvestigationView activeView = KnowledgeGraphInvestigationView.Active;
    KnowledgeGraphInvestigation investigation = activeView?.Investigation;
    if (investigation != null)
    {
      // perform some action
    }
    Get Selected records and open in a new link chart
    // get the active investigation view
    var iv = KnowledgeGraphInvestigationView.Active;
    
    QueuedTask.Run(() =>
    {
      // get the investigation
      var inv = iv.Investigation;
    
      // get the set of selected records
      var idSet = iv.GetSelectedRecords();
    
      // view these records in a link chart
      var map = MapFactory.Instance.CreateLinkChart("myLinkChart", new Uri(inv.ServiceUri), idSet);
      ProApp.Panes.CreateMapPaneAsync(map);
    });
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.5 or higher.
    See Also