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

Inheritance: System.ComponentModel.DataAnnotations.ValidationAttribute, IClientValidatable
Mostrar archivo Open project: ucosmic/UCosmicPreview

Private Properties

Property Type Description

Public Methods

Method 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 method

public FormatErrorMessage ( string name ) : string
name string
return string

GetClientValidationRules() public method

public GetClientValidationRules ( ModelMetadata metadata, System.Web.Mvc.ControllerContext context ) : IEnumerable
metadata ModelMetadata
context System.Web.Mvc.ControllerContext
return IEnumerable

IsValid() public method

public IsValid ( object value ) : bool
value object
return bool

RequiredIfClientAttribute() public method

public RequiredIfClientAttribute ( string otherProperty, ComparisonType comparisonType, object otherComparisonValue ) : System
otherProperty string
comparisonType ComparisonType
otherComparisonValue object
return System