Show / Hide Table of Contents

Delegate Selector.webMatchingFunction

Custom matching function, must return all matched elements and an indicator as to whether all elements matched (for the purpose of the custom match)
More than one custom matching method can be define, they will be chained based upon the return value.

Namespace: GenerallyPositive
Assembly: GPAL.dll
Syntax
public delegate int webMatchingFunction(List<GPALElement> foundElements, out List<GPALElement> matchedElements, out bool matchedAll, Selector selector);
Parameters
Type Name Description
System.Collections.Generic.List<GPALElement> foundElements

All elements found for the selector

System.Collections.Generic.List<GPALElement> matchedElements

All matched elements (or all found)

System.Boolean matchedAll

True if all found elements matched.
False for only partial match.

Selector selector

The selector used for the found elements

Returns
Type Description
System.Int32

0: not handled, try next handler
1: handled, do not try another handler
-2: we don't like this set, try the next selector path
-1: error/exit

In This Article
Back to top Generated by DocFX