RegexCollection.IndexOf(Regex) Method

Definition

Searches for the specified regular expression and returns the zero-based index of the first occurrence within the entire RegexCollection.

public:
 int IndexOf(System::Text::RegularExpressions::Regex ^ value);
public int IndexOf (System.Text.RegularExpressions.Regex value);
abstract member IndexOf : System.Text.RegularExpressions.Regex -> int
Public Function IndexOf (value As Regex) As Integer

Parameters

value
Regex

The regular expression to locate in the RegexCollection.

Returns

The zero-based index of the first occurrence of value within the entire RegexCollection, if found; otherwise, -1.

Applies to