Convert::ToInt32 Method (String^)
Converts the specified string representation of a number to an equivalent 32-bit signed integer.
Assembly: mscorlib (in mscorlib.dll)
Using the Int32::Parse(String^) method.value is interpreted by using the formatting conventions of the current thread culture.method is equivalent to passing value to the
If you prefer not to handle an exception if the conversion fails, you can call the Int32::TryParse method instead. It returns a Boolean value that indicates whether the conversion succeeded or failed.
Available since 4.5
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1