C# Class UCosmic.Www.Mvc.Models.RequiredIfClientAttribute

Inheritance: System.ComponentModel.DataAnnotations.ValidationAttribute, IClientValidatable
Afficher le fichier Open project: ucosmic/UCosmicPreview

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
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

Method Details

FormatErrorMessage() public méthode

public FormatErrorMessage ( string name ) : string
name string
Résultat string

GetClientValidationRules() public méthode

public GetClientValidationRules ( ModelMetadata metadata, System.Web.Mvc.ControllerContext context ) : IEnumerable
metadata ModelMetadata
context System.Web.Mvc.ControllerContext
Résultat IEnumerable

IsValid() public méthode

public IsValid ( object value ) : bool
value object
Résultat bool

RequiredIfClientAttribute() public méthode

public RequiredIfClientAttribute ( string otherProperty, ComparisonType comparisonType, object otherComparisonValue ) : System
otherProperty string
comparisonType ComparisonType
otherComparisonValue object
Résultat System