ArcGIS Pro 2.8 API Reference Guide
GetQueryDescription(String) Method

ArcGIS.Core.Data Namespace > Database Class > GetQueryDescription Method : GetQueryDescription(String) Method
The name of a valid single (i.e., standalone) table. The name can be unqualified or fully qualified. Regardless of whether it is unqualified or fully qualified, it must match one of the "tableNames" returned from the method GetTableNames.
Gets the QueryDescription object associated with the single (i.e., standalone) table specified by tableName in the currently opened database. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public QueryDescription GetQueryDescription( 
   string tableName
)
Public Overloads Function GetQueryDescription( _
   ByVal tableName As String _
) As QueryDescription

Parameters

tableName
The name of a valid single (i.e., standalone) table. The name can be unqualified or fully qualified. Regardless of whether it is unqualified or fully qualified, it must match one of the "tableNames" returned from the method GetTableNames.

Return Value

The QueryDescription object that fully describes how the underlying database table should be represented as a Table or FeatureClass if it is a spatial table.
Exceptions
ExceptionDescription
tableName does not currently exist in the database.
A database-related exception has occurred.
Remarks
A QueryDescription object fully describes how a single database table or one or more database tables (specified by a valid SQL SELECT statement) should be represented as a Table or FeatureClass if the table is spatially enabled. Essentially, there are two flavors of QueryDescription. The first is created by this method. Given a table name (fully qualified or unqualified), it encapsulates all the important properties that describe the underlying single table (i.e., QueryDescription.IsQueryLayer returns false). The second flavor is created by GetQueryDescription(String,String). Given a valid SQL SELECT statement and a query layer name, it encapsulates all the important properties that describe the underlying query layer that is created from one or more tables (i.e., QueryDescription.IsQueryLayer returns true).
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Database Class
Database Members
Overload List