Table of Contents

Class Validation.MatchRegexAttribute

Namespace
Lime
Assembly
Lime.dll

Validation will fail with Result.Error if string property doesn't match provided regular expression.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public class Validation.MatchRegexAttribute : Attribute, Validation.IValidator<string>, Validation.IValidator, Validation.IPassThroughEnumerable
Inheritance
Validation.MatchRegexAttribute
Implements
Derived
Inherited Members

Constructors

MatchRegexAttribute(string)

public MatchRegexAttribute(string regularExpression)

Parameters

regularExpression string

Methods

Validate(string)

public IEnumerable<(Validation.Result Result, string Message)> Validate(string value)

Parameters

value string

Returns

IEnumerable<(Validation.Result Result, string Message)>