Applies the specified tag processing rules to the copy of the current element and any its child elements, calling a delegate for every tag which matches the specified rules, and returns the resulting OuterHtml as a string.
A string containing OuterHtml of the current Element copy which was modified accordingly the specified rules.
This method does not alter the element during processing (all operations take place on its temporary copy).
If you specified del delegate, ProcessToString 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 AddTagProcessingRule topic.
Element Class | MailBee.Html Namespace | Process