C# Class SmsWeb.Models.FileTypesAttribute

From http://www.prideparrot.com/blog/archive/2012/8/uploading_and_returning_files
Inheritance: System.ComponentModel.DataAnnotations.ValidationAttribute
Mostra file Open project: samjeffress/TrickleComms

Public Methods

Method Description
FileTypesAttribute ( string types ) : System
FormatErrorMessage ( string name ) : string
IsValid ( object value ) : bool

Method Details

FileTypesAttribute() public method

public FileTypesAttribute ( string types ) : System
types string
return System

FormatErrorMessage() public method

public FormatErrorMessage ( string name ) : string
name string
return string

IsValid() public method

public IsValid ( object value ) : bool
value object
return bool