This documentation is archived and is not being maintained.

Group.Success Property

Gets a value indicating whether the match is successful.

[Visual Basic]
Public ReadOnly Property Success As Boolean
public bool Success {get;}
public: __property bool get_Success();
public function get Success() : Boolean;

Property Value

true if the match is successful; otherwise, false.


The Success property is true if at least one substring was captured by this group. It is equivalent to the Boolean expression (Group.Captures.Count > 0).


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

Group Class | Group Members | System.Text.RegularExpressions Namespace