Digits Method (String, String, Boolean, String)

HttpServer.dll

Check if a value is digits only

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

Syntax

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

Parameters

name
Type: System..::.String
Field name.
value
Type: System..::.String
value to validate
required
Type: System..::.Boolean
true if field is required (may not be empty)
extraAllowedCharacters
Type: System..::.String
extra characters that is allowed.

Return Value

string if validated, otherwise string.Empty

See Also