C# Класс Castle.Components.Validator.NonEmptyValidator

Наследование: AbstractValidator
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ApplyBrowserValidation ( BrowserValidationConfiguration config, InputElementType inputType, IBrowserValidationGenerator generator, IDictionary attributes, string target ) : void

Applies the browser validation by setting up one or more input rules on IBrowserValidationGenerator.

IsValid ( object instance, object fieldValue ) : bool

Check that this property has a value that is not null or empty (if string)

Описание методов

ApplyBrowserValidation() публичный Метод

Applies the browser validation by setting up one or more input rules on IBrowserValidationGenerator.
public ApplyBrowserValidation ( BrowserValidationConfiguration config, InputElementType inputType, IBrowserValidationGenerator generator, IDictionary attributes, string target ) : void
config BrowserValidationConfiguration The config.
inputType InputElementType Type of the input.
generator IBrowserValidationGenerator The generator.
attributes IDictionary The attributes.
target string The target.
Результат void

IsValid() публичный Метод

Check that this property has a value that is not null or empty (if string)
public IsValid ( object instance, object fieldValue ) : bool
instance object
fieldValue object
Результат bool