







|
| C# Webserver |
| FormValidator..::.Boolean Method (String, Boolean) |
| FormValidator Class See Also Send Feedback |
Checks whether a field is true (can also be in native language).
Namespace:
HttpServer.Helpers
Assembly:
HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public bool Boolean( string name, bool required ) |
| Visual Basic (Declaration) |
|---|
Public Function Boolean ( _ name As String, _ required As Boolean _ ) As Boolean |
| Visual C++ |
|---|
public: bool Boolean( String^ name, bool required ) |
Parameters
- name
- Type: System..::.String
field name
- required
- Type: System..::.Boolean
field is required (may not be null or empty).
Return Value
true if value is true; false if value is false or if validation failed.
Remarks
Check validation errors to see if error ocurred.
