C# Класс MvcInstaller.RulesValidationFactory

The RulesValidationFactory class is used in the InstallWizard inside the CreateMembership method. It validates rules based on the web.config/membership section and returns the errors to the browser.
Наследование: IRulesValidationFactory
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
RulesValidationFactory ( InstallerConfig config, Configuration configSection ) : System
Validate ( ) : bool

Приватные методы

Метод Описание
AddRule ( PropertyRule rule ) : void

Add a rule to the list of rules to validate.

InitRules ( ) : void

Setup the rules to validate on the Membership section attributes.

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

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

public RulesValidationFactory ( InstallerConfig config, Configuration configSection ) : System
config MvcInstaller.Settings.InstallerConfig
configSection System.Configuration.Configuration
Результат System

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

public Validate ( ) : bool
Результат bool