| ConvertToInt32 Method (String) | 
Converts the specified string representation of a number to an equivalent 32-bit signed integer.
 
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
 Syntax
Syntaxpublic static int ToInt32(
	string value
)
Parameters
- value
- Type: SystemString
 A string that contains the number to convert.
Return Value
Type: 
Int32A 32-bit signed integer that is equivalent to the number in 
value, or 0 (zero) if 
value is null.
 Exceptions
Exceptions| Exception | Condition | 
|---|
| FormatException | value does not consist of an optional sign followed by a sequence of digits (0 through 9). | 
| OverflowException | value represents a number that is less than MinValue or greater than MaxValue. | 
 See Also
See Also