Share via


RegexCollection.Remove(Regex) Method

Definition

Removes the first occurrence of a specific regular expression from the RegexCollection.

public:
 void Remove(System::Text::RegularExpressions::Regex ^ value);
public void Remove (System.Text.RegularExpressions.Regex value);
abstract member Remove : System.Text.RegularExpressions.Regex -> unit
Public Sub Remove (value As Regex)

Parameters

value
Regex

The regular expression to remove from RegexCollection.

Exceptions

The RegexCollection is read-only.-or-The RegexCollection has a fixed size.

Remarks

If the RegexCollection does not contain the specified Regex, the RegexCollection remains unchanged. No exception is thrown.

Applies to