C# Class SweetVids.Core.Validation.MaximumStringLengthAttribute

Inheritance: ValidationAttribute
显示文件 Open project: rauhryan/sweetvids

Public Properties

Property Type Description
GetMessage Func

Public Methods

Method Description
GetLength ( PropertyInfo property ) : int
MaximumStringLengthAttribute ( int length ) : System

Protected Methods

Method Description
validate ( object target, object rawValue, INotification notification ) : void

Method Details

GetLength() public static method

public static GetLength ( PropertyInfo property ) : int
property System.Reflection.PropertyInfo
return int

MaximumStringLengthAttribute() public method

public MaximumStringLengthAttribute ( int length ) : System
length int
return System

validate() protected method

protected validate ( object target, object rawValue, INotification notification ) : void
target object
rawValue object
notification INotification
return void

Property Details

GetMessage public_oe static_oe property

public static Func GetMessage
return Func