Table of Contents

Class ValidationProvider

Namespace
CloudyWing.FormValidators.Core
Assembly
CloudyWing.FormValidators.dll

The validation provider.

public class ValidationProvider
Inheritance
ValidationProvider
Inherited Members

Methods

Compare(string, string, Func<string, string, string, string, string>)

Compare the value of one column with the value of another column.

public Func<string, string, CompareValidator> Compare(string comparisonColumn, string comparisonValue, Func<string, string, string, string, string> customErrorMessageAccessor = null)

Parameters

comparisonColumn string

The comparison column.

comparisonValue string

The comparison value.

customErrorMessageAccessor Func<string, string, string, string, string>

The custom error message accessor. The arguments are column, value, comparison column, comparison value.

Returns

Func<string, string, CompareValidator>

The validator creator.

Compare(string, string, string)

Compare the value of one column with the value of another column.

public Func<string, string, CompareValidator> Compare(string comparisonColumn, string comparisonValue, string customErrorMessageFormat)

Parameters

comparisonColumn string

The comparison column.

comparisonValue string

The comparison value.

customErrorMessageFormat string

The custom error message format. The arguments are column, value, comparison column, comparison value.

Returns

Func<string, string, CompareValidator>

The validator creator.

CreditCard(Func<string, string, string>)

Validation indicate that a value is credit card.

public Func<string, string, CreditCardValidator> CreditCard(Func<string, string, string> customErrorMessageAccessor = null)

Parameters

customErrorMessageAccessor Func<string, string, string>

The custom error message accessor. The arguments are column, value.

Returns

Func<string, string, CreditCardValidator>

The validator creator.

CreditCard(string)

Validation indicate that a value is credit card.

public Func<string, string, CreditCardValidator> CreditCard(string customErrorMessageFormat)

Parameters

customErrorMessageFormat string

The custom error message format. The arguments are column, value.

Returns

Func<string, string, CreditCardValidator>

The validator creator.

DateTime(Func<string, string, DateTime?, DateTime?, string>)

Validation indicate that a value is date time.

public Func<string, string, DateTimeValidator> DateTime(Func<string, string, DateTime?, DateTime?, string> customErrorMessageAccessor = null)

Parameters

customErrorMessageAccessor Func<string, string, DateTime?, DateTime?, string>

The custom error message accessor. The arguments are column, value, min, max.

Returns

Func<string, string, DateTimeValidator>

The validator creator.

DateTime(string)

Validation indicate that a value is date time.

public Func<string, string, DateTimeValidator> DateTime(string customErrorMessageFormat)

Parameters

customErrorMessageFormat string

The custom error message format. The arguments are column, value, min, max.

Returns

Func<string, string, DateTimeValidator>

The validator creator.

DateTimeLessThan(string, string, bool, Func<string, string, string, string, bool, string>)

Validate that an date time value is less than another column value.

public Func<string, string, DateTimeLessThanValidator> DateTimeLessThan(string comparisonColumn, string comparisonValue, bool allowedEqual = true, Func<string, string, string, string, bool, string> customErrorMessageAccessor = null)

Parameters

comparisonColumn string

The comparison column.

comparisonValue string

The comparison value.

allowedEqual bool

if set to true [allowed equal].

customErrorMessageAccessor Func<string, string, string, string, bool, string>

The custom error message accessor. The arguments are column, value, comparison column, comparison value, allowed equal.

Returns

Func<string, string, DateTimeLessThanValidator>

The validator creator.

DateTimeLessThan(string, string, bool, string)

Validate that an date time value is less than another column value.

public Func<string, string, DateTimeLessThanValidator> DateTimeLessThan(string comparisonColumn, string comparisonValue, bool allowedEqual, string customErrorMessageFormat)

Parameters

comparisonColumn string

The comparison column.

comparisonValue string

The comparison value.

allowedEqual bool

if set to true [allowed equal].

customErrorMessageFormat string

The custom error message format. The arguments are column, value, comparison column, comparison value, allowed equal.

Returns

Func<string, string, DateTimeLessThanValidator>

The validator creator.

DateTimeRange(DateTime, DateTime, Func<string, string, DateTime?, DateTime?, string>)

Validation constrains the date time range of a value.

public Func<string, string, DateTimeValidator> DateTimeRange(DateTime min, DateTime max, Func<string, string, DateTime?, DateTime?, string> customErrorMessageAccessor = null)

Parameters

min DateTime

The minimum.

max DateTime

The maximum.

customErrorMessageAccessor Func<string, string, DateTime?, DateTime?, string>

The custom error message accessor. The arguments are column, value, min, max.

Returns

Func<string, string, DateTimeValidator>

The validator creator.

DateTimeRange(DateTime, DateTime, string)

Validation constrains the date time range of a value.

public Func<string, string, DateTimeValidator> DateTimeRange(DateTime min, DateTime max, string customErrorMessageFormat)

Parameters

min DateTime

The minimum.

max DateTime

The maximum.

customErrorMessageFormat string

The custom error message format. The arguments are column, value, min, max.

Returns

Func<string, string, DateTimeValidator>

The validator creator.

Email(Func<string, string, string>)

Email validation.

public Func<string, string, EmailValidator> Email(Func<string, string, string> customErrorMessageAccessor = null)

Parameters

customErrorMessageAccessor Func<string, string, string>

The custom error message accessor. The arguments are column, value.

Returns

Func<string, string, EmailValidator>

The validator creator.

Email(string)

Email validation.

public Func<string, string, RegexValidator> Email(string customErrorMessageFormat)

Parameters

customErrorMessageFormat string

The custom error message format. The arguments are column, value.

Returns

Func<string, string, RegexValidator>

The validator creator.

IPAddress(IPAddressTypes, Func<string, string, IPAddressTypes, string>)

Validation indicate that a value is IP address.

public Func<string, string, IPAddressValidator> IPAddress(IPAddressTypes types = IPAddressTypes.All, Func<string, string, IPAddressTypes, string> customErrorMessageAccessor = null)

Parameters

types IPAddressTypes

The types.

customErrorMessageAccessor Func<string, string, IPAddressTypes, string>

The custom error message accessor. The arguments are column, value, The IP address types.

Returns

Func<string, string, IPAddressValidator>

The validator creator.

IPAddress(IPAddressTypes, string)

Validation indicate that a value is IP address.

public Func<string, string, IPAddressValidator> IPAddress(IPAddressTypes types, string customErrorMessageFormat)

Parameters

types IPAddressTypes

The types.

customErrorMessageFormat string

The custom error message format. The arguments are column, value, The IP address types.

Returns

Func<string, string, IPAddressValidator>

The validator creator.

IdCard(IdCardTypes, Func<string, string, IdCardTypes, string>)

Identification card validation.

public Func<string, string, IdCardValidator> IdCard(IdCardTypes idTypes = IdCardTypes.All, Func<string, string, IdCardTypes, string> customErrorMessageAccessor = null)

Parameters

idTypes IdCardTypes

The Identification types.

customErrorMessageAccessor Func<string, string, IdCardTypes, string>

The custom error message accessor. The arguments are column, value, The identification card types.

Returns

Func<string, string, IdCardValidator>

The validator creator.

IdCard(IdCardTypes, string)

Identification card validation.

public Func<string, string, IdCardValidator> IdCard(IdCardTypes idTypes, string customErrorMessageFormat)

Parameters

idTypes IdCardTypes

The Identification types.

customErrorMessageFormat string

The custom error message format. The arguments are column, value, The identification card types.

Returns

Func<string, string, IdCardValidator>

The validator creator.

IntRange(long, long, bool, Func<string, string, long?, long?, string>)

Validation constrains the integer range of a value.

public Func<string, string, IntegerValidator> IntRange(long min, long max, bool allowedThousands = false, Func<string, string, long?, long?, string> customErrorMessageAccessor = null)

Parameters

min long

The minimum.

max long

The maximum.

allowedThousands bool

if set to true [allowed thousands].

customErrorMessageAccessor Func<string, string, long?, long?, string>

The custom error message accessor. The arguments are column, value, min, max.

Returns

Func<string, string, IntegerValidator>

The validator creator.

IntRange(long, long, bool, string)

Validation constrains the integer range of a value.

public Func<string, string, IntegerValidator> IntRange(long min, long max, bool allowedThousands, string customErrorMessageFormat)

Parameters

min long

The minimum.

max long

The maximum.

allowedThousands bool

if set to true [allowed thousands].

customErrorMessageFormat string

The custom error message format. The arguments are column, value, min, max.

Returns

Func<string, string, IntegerValidator>

The validator creator.

Integer(bool, Func<string, string, long?, long?, string>)

Validation indicate that a value is integer.

public Func<string, string, IntegerValidator> Integer(bool allowedThousands = false, Func<string, string, long?, long?, string> customErrorMessageAccessor = null)

Parameters

allowedThousands bool

if set to true [allowed thousands].

customErrorMessageAccessor Func<string, string, long?, long?, string>

The custom error message accessor. The arguments are column, value, min, max.

Returns

Func<string, string, IntegerValidator>

The validator creator.

Integer(bool, string)

Validation indicate that a value is integer.

public Func<string, string, IntegerValidator> Integer(bool allowedThousands, string customErrorMessageFormat)

Parameters

allowedThousands bool

if set to true [allowed thousands].

customErrorMessageFormat string

The custom error message format. The arguments are column, value, min, max.

Returns

Func<string, string, IntegerValidator>

The validator creator.

IntegerLessThan(string, string, bool, Func<string, string, string, string, bool, string>)

Validate that an integer value is less than another column value.

public Func<string, string, IntegerLessThanValidator> IntegerLessThan(string comparisonColumn, string comparisonValue, bool allowedEqual = true, Func<string, string, string, string, bool, string> customErrorMessageAccessor = null)

Parameters

comparisonColumn string

The comparison column.

comparisonValue string

The comparison value.

allowedEqual bool

if set to true [allowed equal].

customErrorMessageAccessor Func<string, string, string, string, bool, string>

The custom error message accessor. The arguments are column, value, comparison column, comparison value, allowed equal.

Returns

Func<string, string, IntegerLessThanValidator>

The validator creator.

IntegerLessThan(string, string, bool, string)

Validate that an integer value is less than another column value.

public Func<string, string, IntegerLessThanValidator> IntegerLessThan(string comparisonColumn, string comparisonValue, bool allowedEqual, string customErrorMessageFormat)

Parameters

comparisonColumn string

The comparison column.

comparisonValue string

The comparison value.

allowedEqual bool

if set to true [allowed equal].

customErrorMessageFormat string

The custom error message format. The arguments are column, value, comparison column, comparison value, allowed equal.

Returns

Func<string, string, IntegerLessThanValidator>

The validator creator.

LengthRange(int, int, Func<string, string, long, long, string>)

Validation constraints a value does not exceed the length range.

public Func<string, string, ValueLengthValidator> LengthRange(int min, int max, Func<string, string, long, long, string> customErrorMessageAccessor = null)

Parameters

min int

The minimum.

max int

The maximum.

customErrorMessageAccessor Func<string, string, long, long, string>

The custom error message accessor. The arguments are column, value, min, max.

Returns

Func<string, string, ValueLengthValidator>

The validator creator.

LengthRange(int, int, string)

Validation constraints a value does not exceed the length range.

public Func<string, string, ValueLengthValidator> LengthRange(int min, int max, string customErrorMessageFormat)

Parameters

min int

The minimum.

max int

The maximum.

customErrorMessageFormat string

The custom error message format. The arguments are column, value, min, max.

Returns

Func<string, string, ValueLengthValidator>

The validator creator.

MaxDateTime(DateTime, Func<string, string, DateTime?, DateTime?, string>)

Validation constrains the maximum date time of a value.

public Func<string, string, DateTimeValidator> MaxDateTime(DateTime max, Func<string, string, DateTime?, DateTime?, string> customErrorMessageAccessor = null)

Parameters

max DateTime

The maximum.

customErrorMessageAccessor Func<string, string, DateTime?, DateTime?, string>

The custom error message accessor. The arguments are column, value, min, max.

Returns

Func<string, string, DateTimeValidator>

The validator creator.

MaxDateTime(DateTime, string)

Validation constrains the maximum date time of a value.

public Func<string, string, DateTimeValidator> MaxDateTime(DateTime max, string customErrorMessageFormat)

Parameters

max DateTime

The maximum.

customErrorMessageFormat string

The custom error message format. The arguments are column, value, min, max.

Returns

Func<string, string, DateTimeValidator>

The validator creator.

MaxInt(long, bool, Func<string, string, long?, long?, string>)

Validation constrains the maximum integer of a value.

public Func<string, string, IntegerValidator> MaxInt(long max, bool allowedThousands = false, Func<string, string, long?, long?, string> customErrorMessageAccessor = null)

Parameters

max long

The maximum.

allowedThousands bool

if set to true [allowed thousands].

customErrorMessageAccessor Func<string, string, long?, long?, string>

The custom error message accessor. The arguments are column, value, min, max.

Returns

Func<string, string, IntegerValidator>

The validator creator.

MaxInt(long, bool, string)

Validation constrains the maximum integer of a value.

public Func<string, string, IntegerValidator> MaxInt(long max, bool allowedThousands, string customErrorMessageFormat)

Parameters

max long

The maximum.

allowedThousands bool

if set to true [allowed thousands].

customErrorMessageFormat string

The custom error message format. The arguments are column, value, min, max.

Returns

Func<string, string, IntegerValidator>

The validator creator.

MaxLength(long, Func<string, string, long, long, string>)

Validation to constrains a value does not exceed a maximum length.

public Func<string, string, ValueLengthValidator> MaxLength(long max, Func<string, string, long, long, string> customErrorMessageAccessor = null)

Parameters

max long

The maximum.

customErrorMessageAccessor Func<string, string, long, long, string>

The custom error message accessor. The arguments are column, value, min, max.

Returns

Func<string, string, ValueLengthValidator>

The validator creator.

MaxLength(long, string)

Validation to constrains a value does not exceed a maximum length.

public Func<string, string, ValueLengthValidator> MaxLength(long max, string customErrorMessageFormat)

Parameters

max long

The maximum.

customErrorMessageFormat string

The custom error message format. The arguments are column, value, min, max.

Returns

Func<string, string, ValueLengthValidator>

The validator creator.

MaxNumber(decimal, bool, Func<string, string, decimal?, decimal?, string>)

Validation constrains the maximum number of a value.

public Func<string, string, NumberValidator> MaxNumber(decimal max, bool allowedThousands = false, Func<string, string, decimal?, decimal?, string> customErrorMessageAccessor = null)

Parameters

max decimal

The maximum.

allowedThousands bool

if set to true [allowed thousands].

customErrorMessageAccessor Func<string, string, decimal?, decimal?, string>

The custom error message accessor. The arguments are column, value, min, max.

Returns

Func<string, string, NumberValidator>

The validator creator.

MaxNumber(decimal, bool, string)

Validation constrains the maximum number of a value.

public Func<string, string, NumberValidator> MaxNumber(decimal max, bool allowedThousands, string customErrorMessageFormat)

Parameters

max decimal

The maximum.

allowedThousands bool

if set to true [allowed thousands].

customErrorMessageFormat string

The custom error message format. The arguments are column, value, min, max.

Returns

Func<string, string, NumberValidator>

The validator creator.

MinDateTime(DateTime, Func<string, string, DateTime?, DateTime?, string>)

Validation constrains the minimum date time of a value.

public Func<string, string, DateTimeValidator> MinDateTime(DateTime min, Func<string, string, DateTime?, DateTime?, string> customErrorMessageAccessor = null)

Parameters

min DateTime

The minimum.

customErrorMessageAccessor Func<string, string, DateTime?, DateTime?, string>

The custom error message accessor. The arguments are column, value, min, max.

Returns

Func<string, string, DateTimeValidator>

The validator creator.

MinDateTime(DateTime, string)

Validation constrains the minimum date time of a value.

public Func<string, string, DateTimeValidator> MinDateTime(DateTime min, string customErrorMessageFormat)

Parameters

min DateTime

The minimum.

customErrorMessageFormat string

The custom error message format. The arguments are column, value, min, max.

Returns

Func<string, string, DateTimeValidator>

The validator creator.

MinInt(long, bool, Func<string, string, long?, long?, string>)

Validation constrains the minimum integer of a value.

public Func<string, string, IntegerValidator> MinInt(long min, bool allowedThousands = false, Func<string, string, long?, long?, string> customErrorMessageAccessor = null)

Parameters

min long

The minimum.

allowedThousands bool
customErrorMessageAccessor Func<string, string, long?, long?, string>

The custom error message accessor. The arguments are column, value, min, max.

Returns

Func<string, string, IntegerValidator>

The validator creator.

MinInt(long, bool, string)

Validation constrains the minimum integer of a value.

public Func<string, string, IntegerValidator> MinInt(long min, bool allowedThousands, string customErrorMessageFormat)

Parameters

min long

The minimum.

allowedThousands bool

if set to true [allowed thousands].

customErrorMessageFormat string

The custom error message format. The arguments are column, value, min, max.

Returns

Func<string, string, IntegerValidator>

The validator creator.

MinLength(long, Func<string, string, long, long, string>)

Validation to constrains a value does not exceed a minimum length.

public Func<string, string, ValueLengthValidator> MinLength(long min, Func<string, string, long, long, string> customErrorMessageAccessor = null)

Parameters

min long

The minimum.

customErrorMessageAccessor Func<string, string, long, long, string>

The custom error message accessor. The arguments are column, value, min, max.

Returns

Func<string, string, ValueLengthValidator>

The validator creator.

MinLength(long, string)

Validation to constrains a value does not exceed a minimum length.

public Func<string, string, ValueLengthValidator> MinLength(long min, string customErrorMessageFormat)

Parameters

min long

The minimum.

customErrorMessageFormat string

The custom error message format. The arguments are column, value, min, max.

Returns

Func<string, string, ValueLengthValidator>

The validator creator.

MinNumber(decimal, bool, Func<string, string, decimal?, decimal?, string>)

Validation constrains the minimum number of a value.

public Func<string, string, NumberValidator> MinNumber(decimal min, bool allowedThousands = false, Func<string, string, decimal?, decimal?, string> customErrorMessageAccessor = null)

Parameters

min decimal

The minimum.

allowedThousands bool

if set to true [allowed thousands].

customErrorMessageAccessor Func<string, string, decimal?, decimal?, string>

The custom error message accessor. The arguments are column, value, min, max.

Returns

Func<string, string, NumberValidator>

The validator creator.

MinNumber(decimal, bool, string)

Validation constrains the minimum number of a value.

public Func<string, string, NumberValidator> MinNumber(decimal min, bool allowedThousands, string customErrorMessageFormat)

Parameters

min decimal

The minimum.

allowedThousands bool

if set to true [allowed thousands].

customErrorMessageFormat string

The custom error message format. The arguments are column, value, min, max.

Returns

Func<string, string, NumberValidator>

The validator creator.

MobilePhone(MobilePhoneFormats, Func<string, string, MobilePhoneFormats, string>)

Mobile phone validation.

public Func<string, string, MobilePhoneValidator> MobilePhone(MobilePhoneFormats formats = MobilePhoneFormats.All, Func<string, string, MobilePhoneFormats, string> customErrorMessageAccessor = null)

Parameters

formats MobilePhoneFormats

The formats.

customErrorMessageAccessor Func<string, string, MobilePhoneFormats, string>

The custom error message accessor. The arguments are column, value, The mobile phone formats.

Returns

Func<string, string, MobilePhoneValidator>

The validator creator.

MobilePhone(MobilePhoneFormats, string)

Mobile phone validation.

public Func<string, string, MobilePhoneValidator> MobilePhone(MobilePhoneFormats formats, string customErrorMessageFormat)

Parameters

formats MobilePhoneFormats

The formats.

customErrorMessageFormat string

The custom error message format. The arguments are column, value, The mobile phone formats.

Returns

Func<string, string, MobilePhoneValidator>

The validator creator.

Number(bool, Func<string, string, decimal?, decimal?, string>)

Validation indicate that a value is number.

public Func<string, string, NumberValidator> Number(bool allowedThousands = false, Func<string, string, decimal?, decimal?, string> customErrorMessageAccessor = null)

Parameters

allowedThousands bool

if set to true [allowed thousands].

customErrorMessageAccessor Func<string, string, decimal?, decimal?, string>

The custom error message accessor. The arguments are column, value, min, max.

Returns

Func<string, string, NumberValidator>

The validator creator.

Number(bool, string)

Validation indicate that a value is number.

public Func<string, string, NumberValidator> Number(bool allowedThousands, string customErrorMessageFormat)

Parameters

allowedThousands bool

if set to true [allowed thousands].

customErrorMessageFormat string

The custom error message format. The arguments are column, value, min, max.

Returns

Func<string, string, NumberValidator>

The validator creator.

NumberLessThan(string, string, bool, Func<string, string, string, string, bool, string>)

Validate that an number value is less than another column value.

public Func<string, string, NumberLessThanValidator> NumberLessThan(string comparisonColumn, string comparisonValue, bool allowedEqual = true, Func<string, string, string, string, bool, string> customErrorMessageAccessor = null)

Parameters

comparisonColumn string

The comparison column.

comparisonValue string

The comparison value.

allowedEqual bool

if set to true [allowed equal].

customErrorMessageAccessor Func<string, string, string, string, bool, string>

The custom error message accessor. The arguments are column, value, comparison column, comparison value, allowed equal.

Returns

Func<string, string, NumberLessThanValidator>

The validator creator.

NumberLessThan(string, string, bool, string)

Validate that an number value is less than another column value.

public Func<string, string, NumberLessThanValidator> NumberLessThan(string comparisonColumn, string comparisonValue, bool allowedEqual, string customErrorMessageFormat)

Parameters

comparisonColumn string

The comparison column.

comparisonValue string

The comparison value.

allowedEqual bool

if set to true [allowed equal].

customErrorMessageFormat string

The custom error message format. The arguments are column, value, comparison column, comparison value, allowed equal.

Returns

Func<string, string, NumberLessThanValidator>

The validator creator.

NumberRange(decimal, decimal, bool, Func<string, string, decimal?, decimal?, string>)

Validation constrains the number range of a value.

public Func<string, string, NumberValidator> NumberRange(decimal min, decimal max, bool allowedThousands = false, Func<string, string, decimal?, decimal?, string> customErrorMessageAccessor = null)

Parameters

min decimal

The minimum.

max decimal

The maximum.

allowedThousands bool

if set to true [allowed thousands].

customErrorMessageAccessor Func<string, string, decimal?, decimal?, string>

The custom error message accessor. The arguments are column, value, min, max.

Returns

Func<string, string, NumberValidator>

The validator creator.

NumberRange(decimal, decimal, bool, string)

Validation constrains the number range of a value.

public Func<string, string, NumberValidator> NumberRange(decimal min, decimal max, bool allowedThousands, string customErrorMessageFormat)

Parameters

min decimal

The minimum.

max decimal

The maximum.

allowedThousands bool

if set to true [allowed thousands].

customErrorMessageFormat string

The custom error message format. The arguments are column, value, min, max.

Returns

Func<string, string, NumberValidator>

The validator creator.

Regex(string, Func<string, string, string>)

Regex validation.

public Func<string, string, RegexValidator> Regex(string pattern, Func<string, string, string> customErrorMessageAccessor = null)

Parameters

pattern string

The pattern.

customErrorMessageAccessor Func<string, string, string>

The custom error message accessor. The arguments are column, value.

Returns

Func<string, string, RegexValidator>

The validator creator.

Regex(string, string)

Regex validation.

public Func<string, string, RegexValidator> Regex(string pattern, string customErrorMessageFormat)

Parameters

pattern string

The pattern.

customErrorMessageFormat string

The custom error message format. The arguments are column, value.

Returns

Func<string, string, RegexValidator>

The validator creator.

Required(Func<string, string, string>)

Validation indicate that a value is required.

public Func<string, string, RequiredValidator> Required(Func<string, string, string> customErrorMessageAccessor = null)

Parameters

customErrorMessageAccessor Func<string, string, string>

The custom error message accessor. The arguments are column, value.

Returns

Func<string, string, RequiredValidator>

The validator creator.

Required(string)

Validation indicate that a value is required.

public Func<string, string, RequiredValidator> Required(string customErrorMessageFormat)

Parameters

customErrorMessageFormat string

The custom error message format. The arguments are column, value.

Returns

Func<string, string, RequiredValidator>

The validator creator.

Url(UriKind, Func<string, string, string>)

Validation indicate that a value is URL.

public Func<string, string, UrlValidator> Url(UriKind kind = UriKind.Absolute, Func<string, string, string> customErrorMessageAccessor = null)

Parameters

kind UriKind

The kind.

customErrorMessageAccessor Func<string, string, string>

The custom error message accessor. The arguments are column, value.

Returns

Func<string, string, UrlValidator>

The validator creator.

Url(UriKind, string)

Validation indicate that a value is URL.

public Func<string, string, UrlValidator> Url(UriKind kind, string customErrorMessageFormat)

Parameters

kind UriKind

The kind.

customErrorMessageFormat string

The custom error message format. The arguments are column, value.

Returns

Func<string, string, UrlValidator>

The validator creator.