Share via


RegexCollection.Contains(Regex) Method

Definition

Determines whether the RegexCollection contains a specific regular expression.

public:
 bool Contains(System::Text::RegularExpressions::Regex ^ value);
public bool Contains (System.Text.RegularExpressions.Regex value);
abstract member Contains : System.Text.RegularExpressions.Regex -> bool
Public Function Contains (value As Regex) As Boolean

Parameters

value
Regex

The regular expression to locate in the RegexCollection.

Returns

true if the RegexCollection contains the specified value; otherwise, false.

Applies to