ArcGIS Pro 2.9 API Reference Guide
GetDefinition Method (Database)

ArcGIS.Core.Data Namespace > Database Class : GetDefinition Method
The QueryDescription object.
Gets the TableDefinition or FeatureClassDefinition (if QueryDescription.IsSpatialQuery in queryDescription returns true) whose Table or FeatureClass is associated with queryDescription. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
Public Function GetDefinition( _
   ByVal queryDescription As QueryDescription _
) As TableDefinition

Parameters

queryDescription
The QueryDescription object.

Return Value

Exceptions
ExceptionDescription
queryDescription is null.
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 GetQueryDescription(String). 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 11, Windows 10, Windows 8.1

See Also

Reference

Database Class
Database Members