ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / KnowledgeGraphLayerIDSet Class
Members Example

In This Topic
    KnowledgeGraphLayerIDSet Class
    In This Topic
    A collection of named object types and their corresponding list of records to represent a set of rows in a KnowledgeGraphLayer.
    Object Model
    KnowledgeGraphLayerIDSet ClassKnowledgeGraphLayerIDSet ClassKnowledgeGraphLayerIDSet ClassKnowledgeGraphLayerIDSet Class
    Syntax
    public sealed class KnowledgeGraphLayerIDSet 
    Public NotInheritable Class KnowledgeGraphLayerIDSet 
    Example
    Create an ID set from a SelectionSet
    QueuedTask.Run(() =>
    {
      // get the selection set
      var sSet = map.GetSelection();
    
      // translate to an KnowledgeGraphLayerIDSet
      //  if the selectionset does not contain any KG entity or relationship records
      //    then idSet will be null  
      var idSet = KnowledgeGraphLayerIDSet.FromSelectionSet(sSet);
      if (idSet == null)
        return;
    
    
      // you can use the idSet to create a new linkChart
      //   (using MapFactory.Instance.CreateLinkChart)
    });
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Mapping.KnowledgeGraphLayerIDSet

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.3 or higher.
    See Also