ArcGIS Pro 2.9 API Reference Guide
GetTable Method (BasicFeatureLayer)

ArcGIS.Desktop.Mapping Namespace > BasicFeatureLayer Class : GetTable Method
Returns the underlying feature class as Table type. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public Table GetTable()
Public Function GetTable() As Table

Return Value

Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Remarks

You may want to cast it to FeatureClass.

To ensure maximum robustness, callers should explicitly dispose of the returned ArcGIS.Core.Data.Table in either a using statement or a finally block.

Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

BasicFeatureLayer Class
BasicFeatureLayer Members