In This Topic
Returns the value of the named parameter as an int. If the parameter has a non-numeric value a NumberFormatException is thrown. If the parameter has a multiple word value than the first word is returned as an int, others are ignored. If the parameter 'pname' is not in the parameter list, an IllegalArgumentException is thrown.
Syntax
'Declaration
Public Overridable Function getIntParameter( _
ByVal As String _
) As Integer
public virtual int getIntParameter(
string
)
Parameters
- pname
- The parameter name.
Return Value
the value of the parameter as an int.
Exceptions
Exception | Description |
NumberFormatException | If the parameter has a non-numeric
value.
|
IllegalArgumentException | If there is no parameter with the
name 'pname' in the parameter list.
|
See Also