C# Class DataAnnotationsExtensions.UrlAttribute

Inheritance: System.ComponentModel.DataAnnotations.DataTypeAttribute
Mostrar archivo Open project: srkirkland/DataAnnotationsExtensions

Public Methods

Method Description
FormatErrorMessage ( string name ) : string
IsValid ( object value ) : bool
UrlAttribute ( UrlOptions urlOptions = UrlOptions.RequireProtocol ) : System

Private Methods

Method Description
UrlAttribute ( bool requireProtocol ) : System

Method Details

FormatErrorMessage() public method

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

IsValid() public method

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

UrlAttribute() public method

public UrlAttribute ( UrlOptions urlOptions = UrlOptions.RequireProtocol ) : System
urlOptions UrlOptions
return System