Home SearchFunction Class
SearchFunction Class
Cancel

SearchFunction Class

Namespace: Json.Path

Inheritance: SearchFunction 🡒 LogicalFunctionDefinition 🡒 object

Implemented interfaces:

  • IReflectiveFunctionDefinition
  • IPathFunctionDefinition

Implements the match() function which determines if any substring within a string matches a regular expression.

Properties

NameTypeSummary
NamestringGets the function name.

Methods

Evaluate(JsonNode value, JsonNode pattern)

Evaluates the function.

Declaration

1
public bool Evaluate(JsonNode value, JsonNode pattern)
ParameterTypeDescription
valueJsonNodeThe value to test.
patternJsonNodeThe iregexp pattern to test against.

Returns

true if the string contains a match for the pattern; false otherwise.

Contents