C# Class HermaFx.DataAnnotations.ValidateElementsUsingAttribute

Inheritance: System.ComponentModel.DataAnnotations.ValidationAttribute
Datei anzeigen Open project: evicertia/HermaFx

Public Methods

Method Description
ValidateElementsUsingAttribute ( Type metadataType, string propertyName ) : System
ValidateElementsUsingAttribute ( Type metadataType, string propertyName, string errorMessage ) : System

Protected Methods

Method Description
IsValid ( object value, System.ComponentModel.DataAnnotations.ValidationContext context ) : System.ComponentModel.DataAnnotations.ValidationResult

Private Methods

Method Description
ValidateClass ( object value, System.ComponentModel.DataAnnotations.ValidationContext context, IEnumerable attributes ) : IEnumerable
ValidateProperties ( object value, System.ComponentModel.DataAnnotations.ValidationContext context ) : IEnumerable

Method Details

IsValid() protected method

protected IsValid ( object value, System.ComponentModel.DataAnnotations.ValidationContext context ) : System.ComponentModel.DataAnnotations.ValidationResult
value object
context System.ComponentModel.DataAnnotations.ValidationContext
return System.ComponentModel.DataAnnotations.ValidationResult

ValidateElementsUsingAttribute() public method

public ValidateElementsUsingAttribute ( Type metadataType, string propertyName ) : System
metadataType System.Type
propertyName string
return System

ValidateElementsUsingAttribute() public method

public ValidateElementsUsingAttribute ( Type metadataType, string propertyName, string errorMessage ) : System
metadataType System.Type
propertyName string
errorMessage string
return System