GetIntFromString(String) Method
- Last UpdatedNov 06, 2025
- 1 minute read
Converts the input string to a valid integer if appropriate; an exception is thrown to the caller if the conversion fails.
'Declaration
Public Overloads Shared Function GetIntFromString( _
ByVal InputValue As String _
) As Integer
public static int GetIntFromString(
string InputValue
)
Parameters
- InputValue
- The input string to convert as an integer.
Return Value
Returns the converted integer value if success; otherwise an exception is thrown to the caller.