DataSource.NET
RemoveElementsWithPrefix Method (prefix)
NamespacesCaplin.DataSource.Messaging.ContainerIContainerMessageRemoveElementsWithPrefix(String)
Adds an operation to remove all elements from the container that have a subject that matches the specified prefix.
Declaration Syntax
C#Visual BasicVisual C++
void RemoveElementsWithPrefix(
	string prefix
)
Sub RemoveElementsWithPrefix ( _
	prefix As String _
)
void RemoveElementsWithPrefix(
	String^ prefix
)
Parameters
prefix (String)
The prefix to match subjects for which elements are to be removed from the container.
Remarks

Operations are processed in the order in which they are added to the container and this affects earlier operations. For example, assume that in the same message you:

  1. call AddElement() to add a container element with subject /A/1.
  2. call RemoveElementsWithPrefix with prefix /A.
  3. 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.

Assembly: DataSource.NET (Module: DataSource.NET) Version: 6.2.6.2123 (6.2.6.2123)