C# Class MvcTemplate.Components.Mvc.FileSizeAttribute

Inheritance: System.ComponentModel.DataAnnotations.ValidationAttribute
ファイルを表示 Open project: NonFactors/MVC6.Template Class Usage Examples

Public Methods

Method Description
FileSizeAttribute ( Double maximumMB ) : Microsoft.AspNetCore.Http
FormatErrorMessage ( String name ) : String
IsValid ( Object value ) : System.Boolean

Private Methods

Method Description
ToFiles ( Object value ) : IEnumerable

Method Details

FileSizeAttribute() public method

public FileSizeAttribute ( Double maximumMB ) : Microsoft.AspNetCore.Http
maximumMB Double
return Microsoft.AspNetCore.Http

FormatErrorMessage() public method

public FormatErrorMessage ( String name ) : String
name String
return String

IsValid() public method

public IsValid ( Object value ) : System.Boolean
value Object
return System.Boolean