ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Desktop.Core Namespace / KnowledgeGraphFrameworkExtender Class / CreateInvestigationPaneAsync Method
Does not need to be specified.
The knowledge graph investigation.
The set of named object types and records
Example

In This Topic
    CreateInvestigationPaneAsync Method
    In This Topic
    Create and activate a new knowledge graph investigation pane using a knowledge graph investigation.
    Syntax

    Parameters

    paneCollection
    Does not need to be specified.
    investigation
    The knowledge graph investigation.
    idSet
    The set of named object types and records

    Return Value

    Remarks
    Add an entry to the idSet for each Named Object type to be shown in the investigation pane along with a list of their relevant record ids. Specify a null or empty list for a given entry to include all the records for that particular type at the time of this operation. Note: Named Object names in an ID set entry are case-sensitive.
    Example
    Create and open an investigation pane
    var URL = @"https://acme.com/server/rest/services/Hosted/Acme_KG/KnowledgeGraphServer";
    
    QueuedTask.Run(() =>
    {
      var investigation = KnowledgeGraphInvestigationFactory.Instance.CreateInvestigation(URL, "myInvestigation");
    
      ProApp.Panes.CreateInvestigationPaneAsync(investigation);
    });
    Open an existing investigation
    // open an existing investigation
    var investigationProjectItems = Project.Current.GetItems<KnowledgeGraphInvestigationProjectItem>();
    var investigationProjectItem = investigationProjectItems.FirstOrDefault(ipi => ipi.Name.Equals("myInvestigation")); 
    await QueuedTask.Run(async () =>
    {
      KnowledgeGraphInvestigation investigation = investigationProjectItem.GetInvestigation();
      await ProApp.Panes.CreateInvestigationPaneAsync(investigation);
    });
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.5 or higher.
    See Also