RegexCollection.Contains Method (Regex)
Determines whether the RegexCollection contains a specific regular expression.
Namespace: Microsoft.Office.Tools
Assembly: Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)
Syntax
'Declaration
Function Contains ( _
value As Regex _
) As Boolean
bool Contains(
Regex value
)
Parameters
value
Type: System.Text.RegularExpressions.RegexThe regular expression to locate in the RegexCollection.
Return Value
Type: System.Boolean
true if the RegexCollection contains the specified value; otherwise, false.
.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.