ConversionToInt32Positive Method
Return a number converted to a positive Int32, with no exception thrown
in the case that the specified value is not valid.
Namespace: HtmlAssembly: Html (in Html.dll) Version: 25.2822.3845
public static int ToInt32Positive(
string value,
int defaultValue
)
Public Shared Function ToInt32Positive (
value As String,
defaultValue As Integer
) As Integer
No code example is currently available or this language may not be supported.
- value String
-
Value to convert to an Int32.
- defaultValue Int32
-
The default value to return if the value can not be converted.
Int32
If the caller's value was valid, a positive Int32 representation of
that value. Otherwise, the caller's specified default value.