C# Класс UCosmic.Www.Mvc.Models.RequiredIfClientAttribute

Наследование: System.ComponentModel.DataAnnotations.ValidationAttribute, IClientValidatable
Показать файл Открыть проект

Private Properties

Свойство Тип Описание

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

Метод Описание
FormatErrorMessage ( string name ) : string
GetClientValidationRules ( ModelMetadata metadata, System.Web.Mvc.ControllerContext context ) : IEnumerable
IsValid ( object value ) : bool
RequiredIfClientAttribute ( string otherProperty, ComparisonType comparisonType, object otherComparisonValue ) : System

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

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

public FormatErrorMessage ( string name ) : string
name string
Результат string

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

public GetClientValidationRules ( ModelMetadata metadata, System.Web.Mvc.ControllerContext context ) : IEnumerable
metadata ModelMetadata
context System.Web.Mvc.ControllerContext
Результат IEnumerable

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

public IsValid ( object value ) : bool
value object
Результат bool

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

public RequiredIfClientAttribute ( string otherProperty, ComparisonType comparisonType, object otherComparisonValue ) : System
otherProperty string
comparisonType ComparisonType
otherComparisonValue object
Результат System