Create a predicate by combining two predicates that were previously created.


Namespace: NetricsServerInterface
Assembly: NetricsServerInterface (in NetricsServerInterface.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function CreatePredicate( _ 
   ByVal predl As NetricsPredicate,  _ 
   ByVal op As Integer,  _ 
   ByVal predr As NetricsPredicate _ 
) As NetricsPredicate
C#
public static NetricsPredicate CreatePredicate(
   NetricsPredicate predl,
   int op,
   NetricsPredicate predr
)
C++
public:
 static NetricsPredicate CreatePredicate(
   NetricsPredicate predl,
   int op,
   NetricsPredicate predr
)
J#
public static NetricsPredicate CreatePredicate(
   NetricsPredicate predl,
   int op,
   NetricsPredicate predr
)
JScript
public static  function CreatePredicate(
   predl : NetricsPredicate,
   op : int,
   predr : NetricsPredicate
) : NetricsPredicate

Remarks

The op parameter is applied between the two predicates. The possible op codes are listed in the table below.
Operator IdDescription
NetricsPredicate.pred_ops.EQUALSThe equality operator (==) - valid for string comparisons as well
NetricsPredicate.pred_ops.INSEN_EQUALSThe equality operator (==) - valid for case insensitive string comparisons as well
NetricsPredicate.pred_ops.LESSTHENThe less than operator (<)
NetricsPredicate.pred_ops.INSEN_LESSTHENThe case insensitive less than operator (<)
NetricsPredicate.pred_ops.LESSTHENOREQThe less that or equal to operator (<=)
NetricsPredicate.pred_ops.INSEN_LESSTHENOREQThe case insensitive less that or equal to operator (<=)
NetricsPredicate.pred_ops.GREATERTHANThe greater than operator (>)
NetricsPredicate.pred_ops.INSEN_GREATERTHANThe case insensitive greater than operator (>)
NetricsPredicate.pred_ops.GREATERTHANOREQThe greater than or equal to operator (>=)
NetricsPredicate.pred_ops.INSEN_GREATERTHANOREQThe case insensitive greater than or equal to operator (>=)
NetricsPredicate.pred_ops.PLUSThe addition operator (+)
NetricsPredicate.pred_ops.MINUSThe subtraction operator (-)
NetricsPredicate.pred_ops.TIMESThe multiplication operator (*)
NetricsPredicate.pred_ops.DIVIDEDBYThe division operator (/)
NetricsPredicate.pred_ops.TOTHEThe exponent operator (^)
NetricsPredicate.pred_ops.ANDThe AND operator (&&)
NetricsPredicate.pred_ops.ORThe OR operator (||)
NetricsPredicate.pred_ops.ISINThe substring operator - detects substring matches of the left operand in the right operand
NetricsPredicate.pred_ops.INSIN_ISINThe substring operator - detects substring matches of the left operand in the right operand ignoring letter case
NetricsPredicate.pred_ops.TOKENIZEThe tokenize operator
NetricsPredicate.pred_ops.SUPERSETThe superset operator
NetricsPredicate.pred_ops.SUBSETThe subset operator
Remember, predicates can nested to an arbitrary depth.

See Also