ArcGIS Pro 2.7 API Reference Guide
OpenQueryTable Method

ArcGIS.Core.Data Namespace > Geodatabase Class : OpenQueryTable Method
Provides the details of how to create the query table.
Opens a query table based on the queryTableDescription. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
Public Function OpenQueryTable( _
   ByVal queryTableDescription As QueryTableDescription _
) As Table

Parameters

queryTableDescription
Provides the details of how to create the query table.

Return Value

A Table or FeatureClass (if it is spatially enabled) that represents the query table.
Exceptions
ExceptionDescription
No valid geodatabase has been opened prior to invoking this operation.
queryTableDescription is null.
A geodatabase-related exception has occurred.
Remarks
The Table or FeatureClass returned is the representation of the QueryDef (included in the QueryTableDescription). It is primarily intended to be used for performing search, adding to the map for visualization and working with geoprocessing analysis tools. It should be noted that selections are not currently supported on the resulting table or feature class.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Geodatabase Class
Geodatabase Members