ArcGIS Pro 2.7 API Reference Guide
GetID Method (Table)

ArcGIS.Core.Data Namespace > Table Class : GetID Method
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 10, Windows 8.1

See Also

Reference

Table Class
Table Members