ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Desktop.KnowledgeGraph Namespace / IKnowledgeGraphInvestigationFactory Interface / CreateInvestigation Method / CreateInvestigation(String,String) Method
The knowledge graph service.
The name of the investigation.
Example

In This Topic
    CreateInvestigation(String,String) Method
    In This Topic
    Creates a new KnowledgeGraphInvestigation in the project. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax

    Parameters

    knowledgeGraphServiceUri
    The knowledge graph service.
    name
    The name of the investigation.

    Return Value

    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    To open an investigation, use ProApp.Panes.CreateInvestigationPane method.

    Example
    Create an Investigation
    var URL = @"https://acme.com/server/rest/services/Hosted/Acme_KG/KnowledgeGraphServer";
    
    QueuedTask.Run(() =>
    {
      var investigation = KnowledgeGraphInvestigationFactory.Instance.CreateInvestigation(URL, "myInvestigation");
    
      
    });
    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);
    });
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.5 or higher.
    See Also