Adds an operation to remove all elements from the container that have a subject that match the
specified prefix.
![](../icons/collapse_all.gif)
![](../icons/collapse_all.gif)
- prefix (String)
- The prefix to match subjects for which elements are to be removed from the container.
![](../icons/collapse_all.gif)
Instructions are processed in the order in which they are added to the container and this affects earlier instructions. For example, assume that in the same message you:
- call AddElement() to add a container element with subject /A/1.
- call RemoveElementsWithPrefix with prefix /A.
- call AddElement() to add a container element with subject /A/2
When this sequence has been processed, the container only contains the element /A/2, because /A/1 was removed at step 2.