Creates a new geocode between filter.
Namespace:
Endeca.DataAssembly: Endeca.Data (in Endeca.Data.dll) Version: 2.1.3.0 (2.1.3.622)
Syntax
C# |
---|
public static RangeFilter CreateGeocodeBetweenRangeFilter( string attributeName, Geocode geocode, double bound1, double bound2 ) |
Visual Basic (Declaration) |
---|
Public Shared Function CreateGeocodeBetweenRangeFilter ( _ attributeName As String, _ geocode As Geocode, _ bound1 As Double, _ bound2 As Double _ ) As RangeFilter |
Visual C++ |
---|
public: static RangeFilter^ CreateGeocodeBetweenRangeFilter( String^ attributeName, Geocode^ geocode, double bound1, double bound2 ) |
Parameters
- attributeName
- Type: System..::.String
The attribute (i.e. property or dimension) that this filter acts upon.
- geocode
- Type: Endeca.Data..::.Geocode
the reference geocode for this filter.
- bound1
- Type: System..::.Double
The lower bound (inclusive) for this filter.
- bound2
- Type: System..::.Double
The upper bound (inclusive) for this filter.
Remarks
This filter will include records for which the geocode value of the record attribute
identified by the attributeName parameter, when evaluated relative to
the specified reference geocode, is with the bounds specified by the
bound1 and bound2 parameters.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | if geocode is null. |
System..::.ArgumentException | if attributeName is null or empty, or if bound1 is greater than or equal to bound2. |