ArcGIS Pro 3.4 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

In This Topic
    TransformToIDs Method
    In This Topic
    Translates a set of objectIDs for a Knowledge Graph type into IDs. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Function TransformToIDs( _
       ByVal typeName As String, _
       ByVal oids As IEnumerable(Of Long) _
    ) As IReadOnlyList(Of Object)

    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