MatchCollection.ICollection<Match>.Contains(Match) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the collection contains a specific value.
virtual bool System.Collections.Generic.ICollection<System.Text.RegularExpressions.Match>.Contains(System::Text::RegularExpressions::Match ^ item) = System::Collections::Generic::ICollection<System::Text::RegularExpressions::Match ^>::Contains;
C#
bool ICollection<Match>.Contains(System.Text.RegularExpressions.Match item);
abstract member System.Collections.Generic.ICollection<System.Text.RegularExpressions.Match>.Contains : System.Text.RegularExpressions.Match -> bool
override this.System.Collections.Generic.ICollection<System.Text.RegularExpressions.Match>.Contains : System.Text.RegularExpressions.Match -> bool
Function Contains (item As Match) As Boolean Implements ICollection(Of Match).Contains
- item
- Match
The object to locate in the collection.
true
if item
is found in the collection; otherwise, false
.
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 |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: