GroupCollection.TryGetValue(String, Group) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to retrieve a group identified by the provided name key, if it exists in the group collection.
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
Parameters
- key
- String
A string with the group name key to look for.
- value
- Group
When the method returns, the group whose name is key
, if it is found; otherwise, null
if not found.
Returns
true
if a group identified by the provided name key exists; false
otherwise.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET