Creates a Recordset of all features that meet both the spatial search criteria specified by the SearchMethod constant, and the logical search criteria in an expression.


Namespace: AspMap
Assembly: AspMapNET (in AspMapNET.dll)

Syntax

Visual Basic (Declaration)
Public Function SearchShape( _ 
   ByVal shape As Object,  _ 
   ByVal searchMethod As SearchMethod,  _ 
   ByVal expr As String _ 
) As Recordset
C#
public Recordset SearchShape(
   object shape,
   SearchMethod searchMethod,
   string expr
)
C++
public:
 Recordset SearchShape(
   Object shape,
   SearchMethod searchMethod,
   String expr
) sealed 
J#
public Recordset SearchShape(
   object shape,
   SearchMethod searchMethod,
   string expr
)
JScript
public  function SearchShape(
   shape : Object,
   searchMethod : SearchMethod,
   expr : String
) : Recordset

Parameters

shape
An object expression that evaluates to a Point, Rectangle, Points or Shape object.
searchMethod
Indicates the type of spatial search criteria target features must meet.
expr
A string expression that forms the 'where' clause portion of the method. The expression may contain:
1. Any combination of VBScript operators, constants, literal values, functions and field names that evaluates to a value of type Boolean.
2. Or, if the layer is a spatial database layer and the EnablePassthroughQuery property is true, the expression may contain any combination of SQL operators, constants, literal values, functions and field names that evaluates to a value of type Boolean.

Remarks

Note
VBScript and SQL expressions use different types of quotes for string literals, VBScript uses double quotes ("), SQL uses single quotes (').

See Also