This document is archived and information here might be outdated.  Recommended version.


IFeatureLayerDefinition.DefinitionExpression Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IF > IFeatureLayerDefinition Interface > IFeatureLayerDefinition.DefinitionExpression Property
ArcGIS Developer Help

IFeatureLayerDefinition.DefinitionExpression Property

Definition query expression for the existing layer.

[Visual Basic .NET]
Public Property DefinitionExpression As String
[C#]
public string DefinitionExpression {get; set;}
[C++]
HRESULT get_DefinitionExpression(
  System.String* Expression
);
[C++]
HRESULT put_DefinitionExpression(
  BSTR Expression
);
[C++]
Parameters
Expression [out, retval]

Expression is a parameter of type BSTR* Expression [in]
Expression is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Use the DefinitionExpression property to read or set the definition query for an existing layer just like you would in the Definition Query tab of the layer's properties dialog.

See Also

IFeatureLayerDefinition Interface