Integer Method (String, Boolean)

HttpServer.dll

Check whether the specified form item is an integer.

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

Syntax

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

Parameters

name
Type: System..::.String
Form parameter to validate
required
Type: System..::.Boolean
Paramater is required (adds an error if it's not specified)

Return Value

value if parameter is an int; 0 if not.

See Also