C# 클래스 DataAnnotationsExtensions.FileExtensionsAttribute

상속: System.ComponentModel.DataAnnotations.DataTypeAttribute
파일 보기 프로젝트 열기: srkirkland/DataAnnotationsExtensions

공개 메소드들

메소드 설명
FileExtensionsAttribute ( string allowedExtensions = "png,jpg,jpeg,gif" ) : System

Provide the allowed file extensions, seperated via comma or pipe, defaults to "png,jpeg,jpg,gif"

FormatErrorMessage ( string name ) : string
IsValid ( object value ) : bool

비공개 메소드들

메소드 설명
ValidateExtension ( string fileName ) : bool

메소드 상세

FileExtensionsAttribute() 공개 메소드

Provide the allowed file extensions, seperated via comma or pipe, defaults to "png,jpeg,jpg,gif"
public FileExtensionsAttribute ( string allowedExtensions = "png,jpg,jpeg,gif" ) : System
allowedExtensions string
리턴 System

FormatErrorMessage() 공개 메소드

public FormatErrorMessage ( string name ) : string
name string
리턴 string

IsValid() 공개 메소드

public IsValid ( object value ) : bool
value object
리턴 bool