Syntax
Public Overrides Function ValidateParameter(ByVal Parameter As String, ByVal Value As String) As Boolean
This function validates the parameters that are added in your Backoffice class, it checks if the value is valid or not for this parameter, the below sample explains how to validate parameters.
Parameters
Key | Description |
Parameter | The parameter name that is set in add parameter method called in the constructor |
Value | The value that should be validated |
Return value
It will return true if parameter is valid otherwise false.
Sample
Public Overrides Function ValidateParameter(ByVal Parameter As String, ByVal Value As String)As Boolean Select Case Parameter Case "Username" Return Value <> "" Case "Password" Return Value <> "" Case "Server" Return Value <> "" Case "Port" Return Value <> "" And IsNumeric(Value) Case Else Return True End Select End Function
See Also