ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Data Namespace / Table Class / GetID Method

In This Topic
    GetID Method (Table)
    In This Topic
    Gets the ID associated with this table. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public long GetID()
    Public Function GetID() As Long

    Return Value

    The table's ID.
    Exceptions
    ExceptionDescription
    A geodatabase-related exception has occurred.
    Remarks
    Currently, tables or feature classes that are not registered with the geodatabase return -1. However, if a table or feature class is opened from a web geodatabase (i.e., connected via Geodatabase.Geodatabase Constructor(ServiceConnectionProperties)), its ID will be the same as its corresponding layer ID.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also