GroupCollection.ContainsKey(String) Method

Definition

Determines whether the group collection contains a captured group identified by the specified name.

C#
public bool ContainsKey(string key);

Parameters

key
String

A string with the name of the captured group to locate.

Returns

true if the group collection contains a captured group identified by key; false otherwise.

Implements

Applies to

Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10