Applies the specified tag processing rules to the current element and any its child elements, calling a delegate for every tag which matches the specified rules.
This method alters the element during processing. To return the modified version while leaving the element contents intact, use ProcessToString method.
If you specified del delegate, Process method will execute it whenever any rule matches. It's also possible to define a rule which does nothing except calling the delegate. You can add such a rule using AddTagProcessingCondition method.
| Exception Type | Condition |
|---|---|
| MailBeeInvalidArgumentException | rules is a null reference (Nothing in Visual Basic). |
The example is available in AddTagProcessingCondition topic.
Element Class | MailBee.Html Namespace | ProcessToString