ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Data Namespace / QueryDescription Class / GetObjectIDFields Method

In This Topic
    GetObjectIDFields Method
    In This Topic
    Gets a comma-separated unique key field(s) that fulfill the role of a table's objectID. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public string GetObjectIDFields()
    Public Function GetObjectIDFields() As String

    Return Value

    A comma-separated unique key field(s) that fulfill the role of a table's objectID.
    Exceptions
    ExceptionDescription
    A database-related exception has occurred.
    Remarks
    The value returned from this method may be the same as that of GetObjectIDField if IsObjectIDMappedColumnRequired is false. In other words, if a virtual ObjectID column is not required, the values returned from aforementioned methods may be identical.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also