Share via


RegexCollection.Remove Method (Regex)

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

Namespace:  Microsoft.Office.Tools
Assembly:  Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)

Syntax

'Declaration
Sub Remove ( _
    value As Regex _
)
void Remove(
    Regex value
)

Parameters

Exceptions

Exception Condition
NotSupportedException

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.

.NET Framework Security

See Also

Reference

RegexCollection Interface

Remove Overload

Microsoft.Office.Tools Namespace