Share via


Empty Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the empty group. All failed matches return this empty match.

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

Syntax

'Declaration
Public Shared ReadOnly Property Empty As Match
public static Match Empty { get; }
public:
static property Match^ Empty {
    Match^ get ();
}
static member Empty : Match with get
static function get Empty () : Match

Property Value

Type: System.Text.RegularExpressions. . :: . .Match
An empty match.

Remarks

This property should not be used to determine if a match is successful. Instead, use the Match.Success property (which is inherited from Group..::..Success).

.NET Framework Security

See Also

Reference

Match Class

System.Text.RegularExpressions Namespace