ArcGIS Pro 2.8 API Reference Guide
SetDefinitionQuery Method (SubtypeGroupLayer)

ArcGIS.Desktop.Mapping Namespace > SubtypeGroupLayer Class : SetDefinitionQuery Method
A SQL expression.
Sets the definition query expression for the SubtypeGroupLayer. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void SetDefinitionQuery( 
   string definitionQuery
)
Public 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 features from the layer by specifying definition query as you would in the Definition Query tab of the layer's properties dialog.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

SubtypeGroupLayer Class
SubtypeGroupLayer Members