ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / KnowledgeGraphLayer Class / GetKnowledgeGraphSubGraph Method

In This Topic
    GetKnowledgeGraphSubGraph Method
    In This Topic
    Gets the ArcGIS.Core.CIM.CIMKnowledgeGraphSubGraph for the KnowledgeGraphLayer. This is defined by the layer's KnowledgeGraphLayerIDSet; that is the set of Named Object types and their corresponding set of records that define this KnowledgeGraphLayer. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public CIMKnowledgeGraphSubGraph GetKnowledgeGraphSubGraph()
    Public Function GetKnowledgeGraphSubGraph() As CIMKnowledgeGraphSubGraph

    Return Value

    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    If you wish to create a ArcGIS.Core.CIM.CIMKnowledgeGraphSubGraph that contains only part of the layer's KnowledgeGraphLayerIDSet, create a ArcGIS.Core.Data.Knowledge.Analytics.KnowledgeGraphSubGraphBuilder and include or exclude the named types and records as appropriate before calling ArcGIS.Core.Data.Knowledge.Analytics.KnowledgeGraphSubGraphBuilder.ToCIMKnowledgeGraphSubGraph.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.6 or higher.
    See Also