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

In This Topic
    FromKnowledgeGraphIDSet Method (MapMemberIDSet)
    In This Topic
    Creates a MapMemberIDSet> object from a ArcGIS.Core.Data.Knowledge.KnowledgeGraphIDSet. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Shared Function FromKnowledgeGraphIDSet( _
       ByVal map As Map, _
       ByVal kgIDSet As KnowledgeGraphIDSet _
    ) As MapMemberIDSet
    public static MapMemberIDSet FromKnowledgeGraphIDSet( 
       Map map,
       KnowledgeGraphIDSet kgIDSet
    )

    Parameters

    map
    The map containing the knowledge graph layer.
    kgIDSet
    The knowledge graph 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. Note: The Map must contain a KnowledgeGraphLayer. The source of the knowledge graph layer must match the source of the KnowledgeGraphIDSet. 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