ESRI.ArcGIS.Mobile
DisplayExpression Property
See Also  Send Feedback
ESRI.ArcGIS.Mobile Namespace > MapLayer Class : DisplayExpression Property

Gets or sets the where clause that limits the features being displayed. Only features that respect the where clause will be rendered.

Syntax

Visual Basic (Declaration) 
Public Overridable Property DisplayExpression As String
C# 
public virtual string DisplayExpression {get; set;}

Remarks

DisplayExpresion works like the definition query in ArcMap where you could setup a Where clause to filter the features to be drawn on display. One thing to keep in mind, though, is that DisplayExpression only affects the display through map control, it doesn't filter the features in FeatureLayer. This implies that DisplayExpression has nothing to do with the QueryFilter you defined for getting a FeatureDataTable, etc.

This property does not apply to Raster based layers.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also