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
[C#]
public bool Success {get;}
[C++]
public: __property bool get_Success();
[JScript]
public function get Success() : Boolean;

Property Value

true if the match is successful; otherwise, false.

Remarks

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).

Requirements

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

Show: