C# 클래스 UCosmic.Www.Mvc.Models.RequiredIfClientAttribute

상속: System.ComponentModel.DataAnnotations.ValidationAttribute, IClientValidatable
파일 보기 프로젝트 열기: ucosmic/UCosmicPreview

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