C# Class GreaterThanAttributeSample.Validation.GreaterThanAttribute

Inheritance: System.ComponentModel.DataAnnotations.ValidationAttribute
Afficher le fichier Open project: tugberkugurlu/ProWebAPI.Samples

Méthodes publiques

Méthode Description
FormatErrorMessage ( string name ) : string
GreaterThanAttribute ( string otherProperty ) : System

Méthodes protégées

Méthode Description
IsValid ( object value, System.ComponentModel.DataAnnotations.ValidationContext validationContext ) : System.ComponentModel.DataAnnotations.ValidationResult

Private Methods

Méthode Description
GetSecondValue ( Type type, object instance ) : IComparable

Method Details

FormatErrorMessage() public méthode

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

GreaterThanAttribute() public méthode

public GreaterThanAttribute ( string otherProperty ) : System
otherProperty string
Résultat System

IsValid() protected méthode

protected IsValid ( object value, System.ComponentModel.DataAnnotations.ValidationContext validationContext ) : System.ComponentModel.DataAnnotations.ValidationResult
value object
validationContext System.ComponentModel.DataAnnotations.ValidationContext
Résultat System.ComponentModel.DataAnnotations.ValidationResult