ESRI.ArcGIS.ADF.IMS
SearchOrder Property
See Also  Example
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.

See Also

© 2010 All Rights Reserved.