Touchstone Re 2023 API Reference
SimpleExpression Class
Members  Example 


Air.Services.Proxy Assembly > AIR.Services.Common.Filter.Data Namespace : SimpleExpression Class
Contains the information necessary to define a simple Filter Expression, in order to create a Filter.
Syntax
Public Class SimpleExpression 
   Inherits FilterExpression
Dim instance As SimpleExpression
public class SimpleExpression : FilterExpression 
Remarks
Each Simple Expression contains the following properties:
Simple Expression PropertyDescription
Applied Entity In Touchstone, Locations, Contracts, or LocTerms. In Touchstone Re, ViewReinsuranceTreatyDetails.
Property Name The API property name. For example, in Touchstone, City, ContractID, or Perils.
Operator The API Operator, for example, IsContainedIn, IsNotContainedIn, IsEqualTo, IsLessThan, IsGreaterThan.
Value The value of the property that you have specified, for example, in Touchstone, the name of a city, a Contract ID, the name of a peril, or a Replacement Value threshold. You can include multiple values in a single Simple Filter Expression.
Example
The following code sample shows an example of a Simple Expression:
using System.Collections.Generic;
using AIR.Services.Common.Filter.Data;
            
class SnippetSimpleFilterExample
{
    private static List<Filter> GetSimpleFilter()
    {
        List<Filter> filters = new List<Filter>();
            
        SimpleExpression simpleExpression = new SimpleExpression()
        {
            AppliedEntity = "Locations",
            PropertyName = "AreaCode",
            Operator = FilterOperator.IsContainedIn,
            Value = new List<string>() { "TX", "NY", "CA" }
        };
            
        Filter filter = new Filter() { Expression = simpleExpression };
        filters.Add(filter);
        return filters;
    }
}
Inheritance Hierarchy

System.Object
   AIR.Services.Common.Filter.Data.FilterExpression
      AIR.Services.Common.Filter.Data.SimpleExpression

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

SimpleExpression Members
AIR.Services.Common.Filter.Data Namespace