Email Method

HttpServer.dll

validates email address using a regexp.

Namespace:  HttpServer.Helpers
Assembly:  HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public string Email(
	string name,
	string value,
	bool required
)
Visual Basic (Declaration)
Public Function Email ( _
	name As String, _
	value As String, _
	required As Boolean _
) As String
Visual C++
public:
String^ Email(
	String^ name, 
	String^ value, 
	bool required
)

Parameters

name
Type: System..::.String
field name
value
Type: System..::.String
value to validate
required
Type: System..::.Boolean
field is required (may not be null or empty).

Return Value

value if validation is ok; otherwise string.Empty.

See Also