ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Data.Knowledge Namespace / KnowledgeGraph Class / TransformToIDs Method
Name of the Knowledge Graphc type the objectIDs are assocated with.
The set of objectIDs to translate.
Example Version

    TransformToIDs Method
    Translates a set of objectIDs for a Knowledge Graph type into IDs. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax

    Parameters

    typeName
    Name of the Knowledge Graphc type the objectIDs are assocated with.
    oids
    The set of objectIDs to translate.

    Return Value

    The set of IDs
    Exceptions
    ExceptionDescription
    typeName cannot be empty or null.
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Example
    Transform a set of objectIDs to IDs for an entity
    QueuedTask.Run(() =>
    {
      var oidList = new List<long>() { 260294, 678, 3523, 3, 669, 93754 };
      var idList = kg.TransformToIDs(entityName, oidList);
    
    });
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.3 or higher.
    See Also