MatchCollection.ICollection<Match>.Contains(Match) Method

Definition

Determines whether the collection contains a specific value.

C#
bool ICollection<Match>.Contains(System.Text.RegularExpressions.Match item);

Parameters

item
Match

The object to locate in the collection.

Returns

true if item is found in the collection; otherwise, false.

Implements

Applies to

Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1