GroupCollection.ContainsKey(String) GroupCollection.ContainsKey(String) GroupCollection.ContainsKey(String) GroupCollection.ContainsKey(String) Method

定义

确定组集合是否包含由指定名称标识的捕获组。Determines whether the group collection contains a captured group identified by the specified name.

public:
 virtual bool ContainsKey(System::String ^ key);
public bool ContainsKey (string key);
abstract member ContainsKey : string -> bool
override this.ContainsKey : string -> bool
Public Function ContainsKey (key As String) As Boolean

参数

key
String String String String

一个字符串,其中包含要查找的捕获组的名称。A string with the name of the captured group to locate.

返回

如果组集合包含由 key 标识的捕获组,则为 true;否则为 falsetrue if the group collection contains a captured group identified by key; false otherwise.

实现

适用于