GroupCollection.TryGetValue(String, Group) Méthode

Définition

Tente de récupérer un groupe identifié par la clé de nom fournie, si celui-ci se trouve dans la collection de groupes.

public:
 virtual bool TryGetValue(System::String ^ key, [Runtime::InteropServices::Out] System::Text::RegularExpressions::Group ^ % value);
public bool TryGetValue (string key, out System.Text.RegularExpressions.Group? value);
public bool TryGetValue (string key, out System.Text.RegularExpressions.Group value);
abstract member TryGetValue : string * Group -> bool
override this.TryGetValue : string * Group -> bool
Public Function TryGetValue (key As String, ByRef value As Group) As Boolean

Paramètres

key
String

Chaîne comportant la clé de nom de groupe à rechercher.

value
Group

Lorsque la méthode est retournée, groupe dont le nom est key, si trouvé ; sinon null.

Retours

Boolean

true si un groupe identifié par la clé de nom fournie existe ; sinon, false.

S’applique à