Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- value
Type: System.Text.RegularExpressions.Regex
The regular expression to remove from RegexCollection.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.