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
comparisonColumnstringThe comparison column.
comparisonValuestringThe comparison value.
customErrorMessageAccessorFunc<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
comparisonColumnstringThe comparison column.
comparisonValuestringThe comparison value.
customErrorMessageFormatstringThe 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
customErrorMessageAccessorFunc<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
customErrorMessageFormatstringThe 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
customErrorMessageAccessorFunc<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
customErrorMessageFormatstringThe 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
comparisonColumnstringThe comparison column.
comparisonValuestringThe comparison value.
allowedEqualboolif set to
true[allowed equal].customErrorMessageAccessorFunc<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
comparisonColumnstringThe comparison column.
comparisonValuestringThe comparison value.
allowedEqualboolif set to
true[allowed equal].customErrorMessageFormatstringThe 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
minDateTimeThe minimum.
maxDateTimeThe maximum.
customErrorMessageAccessorFunc<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
minDateTimeThe minimum.
maxDateTimeThe maximum.
customErrorMessageFormatstringThe 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
customErrorMessageAccessorFunc<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
customErrorMessageFormatstringThe 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
typesIPAddressTypesThe types.
customErrorMessageAccessorFunc<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
typesIPAddressTypesThe types.
customErrorMessageFormatstringThe 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
idTypesIdCardTypesThe Identification types.
customErrorMessageAccessorFunc<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
idTypesIdCardTypesThe Identification types.
customErrorMessageFormatstringThe 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
minlongThe minimum.
maxlongThe maximum.
allowedThousandsboolif set to
true[allowed thousands].customErrorMessageAccessorFunc<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
minlongThe minimum.
maxlongThe maximum.
allowedThousandsboolif set to
true[allowed thousands].customErrorMessageFormatstringThe 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
allowedThousandsboolif set to
true[allowed thousands].customErrorMessageAccessorFunc<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
allowedThousandsboolif set to
true[allowed thousands].customErrorMessageFormatstringThe 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
comparisonColumnstringThe comparison column.
comparisonValuestringThe comparison value.
allowedEqualboolif set to
true[allowed equal].customErrorMessageAccessorFunc<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
comparisonColumnstringThe comparison column.
comparisonValuestringThe comparison value.
allowedEqualboolif set to
true[allowed equal].customErrorMessageFormatstringThe 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
minintThe minimum.
maxintThe maximum.
customErrorMessageAccessorFunc<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
minintThe minimum.
maxintThe maximum.
customErrorMessageFormatstringThe 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
maxDateTimeThe maximum.
customErrorMessageAccessorFunc<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
maxDateTimeThe maximum.
customErrorMessageFormatstringThe 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
maxlongThe maximum.
allowedThousandsboolif set to
true[allowed thousands].customErrorMessageAccessorFunc<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
maxlongThe maximum.
allowedThousandsboolif set to
true[allowed thousands].customErrorMessageFormatstringThe 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
maxlongThe maximum.
customErrorMessageAccessorFunc<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
maxlongThe maximum.
customErrorMessageFormatstringThe 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
maxdecimalThe maximum.
allowedThousandsboolif set to
true[allowed thousands].customErrorMessageAccessorFunc<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
maxdecimalThe maximum.
allowedThousandsboolif set to
true[allowed thousands].customErrorMessageFormatstringThe 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
minDateTimeThe minimum.
customErrorMessageAccessorFunc<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
minDateTimeThe minimum.
customErrorMessageFormatstringThe 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
minlongThe minimum.
allowedThousandsboolcustomErrorMessageAccessorFunc<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
minlongThe minimum.
allowedThousandsboolif set to
true[allowed thousands].customErrorMessageFormatstringThe 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
minlongThe minimum.
customErrorMessageAccessorFunc<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
minlongThe minimum.
customErrorMessageFormatstringThe 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
mindecimalThe minimum.
allowedThousandsboolif set to
true[allowed thousands].customErrorMessageAccessorFunc<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
mindecimalThe minimum.
allowedThousandsboolif set to
true[allowed thousands].customErrorMessageFormatstringThe 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
formatsMobilePhoneFormatsThe formats.
customErrorMessageAccessorFunc<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
formatsMobilePhoneFormatsThe formats.
customErrorMessageFormatstringThe 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
allowedThousandsboolif set to
true[allowed thousands].customErrorMessageAccessorFunc<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
allowedThousandsboolif set to
true[allowed thousands].customErrorMessageFormatstringThe 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
comparisonColumnstringThe comparison column.
comparisonValuestringThe comparison value.
allowedEqualboolif set to
true[allowed equal].customErrorMessageAccessorFunc<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
comparisonColumnstringThe comparison column.
comparisonValuestringThe comparison value.
allowedEqualboolif set to
true[allowed equal].customErrorMessageFormatstringThe 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
mindecimalThe minimum.
maxdecimalThe maximum.
allowedThousandsboolif set to
true[allowed thousands].customErrorMessageAccessorFunc<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
mindecimalThe minimum.
maxdecimalThe maximum.
allowedThousandsboolif set to
true[allowed thousands].customErrorMessageFormatstringThe 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
patternstringThe pattern.
customErrorMessageAccessorFunc<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
patternstringThe pattern.
customErrorMessageFormatstringThe 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
customErrorMessageAccessorFunc<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
customErrorMessageFormatstringThe 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
kindUriKindThe kind.
customErrorMessageAccessorFunc<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
kindUriKindThe kind.
customErrorMessageFormatstringThe custom error message format. The arguments are column, value.
Returns
- Func<string, string, UrlValidator>
The validator creator.