ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.Knowledge Namespace / KnowledgeGraphCursor Class / GetKeys Method

In This Topic
    GetKeys Method (KnowledgeGraphCursor)
    In This Topic
    Gets the readonly list of keys associated with the original query string. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public IReadOnlyList<string> GetKeys()
    Public Function GetKeys() As IReadOnlyList(Of String)

    Return Value

    A readonly list of ArcGIS.Core.Data.Fields present in the cursor.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    This can throw a ArcGIS.Core.Data.Exceptions.GeodatabaseException if the keys have not yet been returned from the executing query when GetKeys is called.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also