C# 클래스 SampleApplication.Models.Movie.PriceRangeAttribute

Vaildation attribute that verifies that the price is in the range given by the priceing service. Used to demonstrate injection of validation attributes.
상속: System.ComponentModel.DataAnnotations.ValidationAttribute
파일 보기 프로젝트 열기: ninject/Ninject.Web.WebApi

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
FormatErrorMessage ( string name ) : string

Applies formatting to an error message, based on the data field where the error occurred.

IsValid ( object value ) : bool

Determines whether the specified value of the object is valid.

메소드 상세

FormatErrorMessage() 공개 메소드

Applies formatting to an error message, based on the data field where the error occurred.
public FormatErrorMessage ( string name ) : string
name string The name to include in the formatted message.
리턴 string

IsValid() 공개 메소드

Determines whether the specified value of the object is valid.
public IsValid ( object value ) : bool
value object The value of the object to validate.
리턴 bool