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

Наследование: Castle.Components.Validator.AbstractValidationAttribute
Показать файл Открыть проект

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

Метод Описание
Build ( ) : IValidator

Constructs and configures an IValidator instance based on the properties set on the attribute instance.

ValidateSetAttribute ( ) : System

Initializes a new instance of the ValidateSetAttribute class.

ValidateSetAttribute ( Type type ) : System

Initializes a new instance of the ValidateSetAttribute class.

ValidateSetAttribute ( Type type, string errorMessage ) : System

Initializes a new instance of the ValidateSetAttribute class.

ValidateSetAttribute ( string errorMessage ) : System

Initializes a new instance of the ValidateSetAttribute class.

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

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

Constructs and configures an IValidator instance based on the properties set on the attribute instance.
public Build ( ) : IValidator
Результат IValidator

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

Initializes a new instance of the ValidateSetAttribute class.
public ValidateSetAttribute ( ) : System
Результат System

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

Initializes a new instance of the ValidateSetAttribute class.
public ValidateSetAttribute ( Type type ) : System
type System.Type The of an enum class. /// The enum names will be added to the contents of the set.
Результат System

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

Initializes a new instance of the ValidateSetAttribute class.
public ValidateSetAttribute ( Type type, string errorMessage ) : System
type System.Type The of an enum class. /// The enum names will be added to the contents of the set.
errorMessage string The error message to be displayed if the validation fails.
Результат System

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

Initializes a new instance of the ValidateSetAttribute class.
public ValidateSetAttribute ( string errorMessage ) : System
errorMessage string The error message to be displayed if the validation fails.
Результат System