RegexCollection.IndexOf Method (Regex)
Searches for the specified regular expression and returns the zero-based index of the first occurrence within the entire RegexCollection.
Namespace: Microsoft.Office.Tools
Assembly: Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)
Syntax
'Declaration
Function IndexOf ( _
value As Regex _
) As Integer
int IndexOf(
Regex value
)
Parameters
value
Type: System.Text.RegularExpressions.RegexThe regular expression to locate in the RegexCollection.
Return Value
Type: System.Int32
The zero-based index of the first occurrence of value within the entire RegexCollection, if found; otherwise, -1.
.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.