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


IFeatureLayerDefinition.DefinitionExpression Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

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(
  BSTR* 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

.NET Related Topics

Creating and working with basemap layers