ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / KnowledgeGraphLayerIDSet Class / FromKnowledgeGraph Method / FromKnowledgeGraph(Uri,KnowledgeGraphFilterType) Method
A Uri link to a knowledge graph service or file-based knowledge graph
The type of named type objects to include in the filter set.

In This Topic
    FromKnowledgeGraph(Uri,KnowledgeGraphFilterType) Method
    In This Topic
    Creates a KnowledgeGraphLayerIDSet with a particular filter type. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax

    Parameters

    knowledgeGraphPathOrServiceUri
    A Uri link to a knowledge graph service or file-based knowledge graph
    filterType
    The type of named type objects to include in the filter set.

    Return Value

    Exceptions
    ExceptionDescription
    The knowledgeGraphPathOrServiceUri is null.
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.3 or higher.
    See Also