Lingua

GroupCollection.TryGetValue(String, Group) Metodo

Definizione

Tenta di recuperare un gruppo identificato dalla chiave del nome fornita, se presente nella raccolta di gruppi.

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

Parametri

key
String

Stringa con la chiave del nome del gruppo da cercare.

value
Group

Quando termina, il gruppo il cui nome è key, se viene trovato; in caso contrario, null se non viene trovato.

Valori restituiti

true se esiste un gruppo identificato dalla chiave del nome specificata; false Altrimenti.

Si applica a