ArcGIS Pro 2.7 API Reference Guide
SetDefinitionQuery Method (IDisplayTable)

ArcGIS.Desktop.Mapping Namespace > IDisplayTable Interface : SetDefinitionQuery Method
A SQL expression.
Sets the definition query expression for a MapMember. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
void SetDefinitionQuery( 
   string definitionQuery
)
Sub SetDefinitionQuery( _
   ByVal definitionQuery As String _
) 

Parameters

definitionQuery
A SQL expression.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Remarks
This allows you to filter rows from the MapMember by specifying definition query.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

IDisplayTable Interface
IDisplayTable Members