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

Group.Success Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft