ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / SelectionSet Class / FromKnowledgeGraphLayerIDSet Method
The map containing the knowledge graph layer
The knowledge graph layer ID set to translate

In This Topic
    FromKnowledgeGraphLayerIDSet Method (SelectionSet)
    In This Topic
    Creates a SelectionSet object from a KnowledgeGraphLayerIDSet. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Shared Shadows Function FromKnowledgeGraphLayerIDSet( _
       ByVal map As Map, _
       ByVal kgLayerIDSet As KnowledgeGraphLayerIDSet _
    ) As SelectionSet
    public new static SelectionSet FromKnowledgeGraphLayerIDSet( 
       Map map,
       KnowledgeGraphLayerIDSet kgLayerIDSet
    )

    Parameters

    map
    The map containing the knowledge graph layer
    kgLayerIDSet
    The knowledge graph layer ID set to translate

    Return Value

    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    The map is null.
    The map does not contain a KnowledgeGraphLayer.
    The map is not a link chart.
    Remarks
    This method can only be called when the map is a Link Chart. That is Map.MapType is of type ArcGIS.Core.CIM.MapType.LinkChart otherwise an System.InvalidOperationException will be thrown. The Map must contain a KnowledgeGraphLayer. The source of the knowledge graph layer must match the source of the KnowledgeGraphLayerIDSet. If there are multiple KnowledgeGraphLayers in the map then the first one retrieved from the map's collection of layers will be used.
    Requirements

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

    ArcGIS Pro version: 3.7 or higher.
    See Also