Share via


FilterExpression Class

FilterExpression Class

Represents complex logical filter expressions that filter the find results when used with the FindFilter object in points of interest find methods (FindServiceSoap.FindByID, FindServiceSoap.FindByProperty, FindServiceSoap.FindNearby, FindServiceSoap.FindPolygon, and FindServiceSoap.FindNearRoute).


Public Class FilterExpression Inherits System.Object


[C#]

public class FilterExpression : System.Object

Public Properties

Name Description
public propertyParameters

Holds the property values used in the filter expression text ( FilterExpression.Text property).

public propertyText

Contains the body of the complex logical expression.

Remarks

  • This object cannot be used in conjunction with the WhereClause object in a FindFilter object. An exception is thrown if both WhereClause and Expression are used in a FindFilter object.

Example

[Visual Basic]

    Dim myfilterexpression As New FilterExpression
    myfilterexpression.Text = "PrimaryCity = {0} AND IsWiFiHotSpot"
    'IsWiFiHotSpot is boolean, so 'true' is substituted by default
    myfilterexpression.Parameters = New Object() {"Berlin"}



[C#]

   FilterExpression filterExpression = new FilterExpression();
   filterExpression.Text = "PrimaryCity = {0} AND IsWiFiHotSpot";
   //IsWiFiHotSpot is boolean, so 'true' is substituted by default
   filterExpression.Parameters = new object[] {"Berlin"};


See Also

  FindFilter Class   |   WhereClause Class   |   FindServiceSoap Class