GroupCollection.TryGetValue(String, Group) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Tente de récupérer un groupe identifié par la clé de nom fournie, s’il existe 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 avec la clé de nom de groupe à rechercher.
- value
- Group
Lorsque la méthode est retournée, le groupe dont le nom est key, s’il est trouvé ; sinon, null s’il est introuvable.
Retours
true si un groupe identifié par la clé de nom fournie existe ; false Sinon.