Success Property
Collapse the table of content
Expand the table of content

Group.Success Property

 

Gets a value indicating whether the match is successful.

Namespace:   System.Text.RegularExpressions
Assembly:  System (in System.dll)

public bool Success { get; }

Property Value

Type: System.Boolean

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

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2016 Microsoft