ESRI.ArcGIS.ADF.IMS
SearchOrder Property
See Also  Example Send Feedback
ESRI.ArcGIS.ADF.IMS.Carto.Layer Namespace > Filter Class : SearchOrder Property




Gets or sets the search order.

Syntax

Visual Basic (Declaration) 
Public Property SearchOrder As SearchOrder
Visual Basic (Usage)Copy Code
Dim instance As Filter
Dim value As SearchOrder
 
instance.SearchOrder = value
 
value = instance.SearchOrder
C# 
public SearchOrder SearchOrder {get; set;}

Example

This example sets the search order for a Filter. For an example of using this property with a WhereExpression and Geometry, see the Filter Class overview.
C#Copy Code
Filter filter = new Filter();
filter.SearchOrder = SearchOrder.AttributeFirst;
Visual BasicCopy Code
Dim filter As New Filter
filter.SearchOrder = SearchOrder.AttributeFirst

Remarks

If both a WhereExpression and Geometry are included in a Filter, SearchOrder determines which is executed first during the query search. The value AttributeFirst searches the WhereExpression first, whereas the value SpatialFirst searches the Geometry first. The default is Optimize, where the server attempts to determine whether it is faster to search with attribute or geometry first.

When using ArcSDE layers, performance is generally better when fields searched in a WhereExpression are indexed. Attribute indexing can be specified in ArcCatalog by connecting to the ArcSDE layer. When the fields used in a WhereExpression are indexed, performance may be better if SearchOrder is set to AttributeFirst, although testing is recommended for optimal performance.

Requirements

Target 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

© 2011 All Rights Reserved.