RegexCollection.Remove(Regex) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.