Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Int32.Parse Method

Converts the string representation of a number to its 32-bit signed integer equivalent.

Overload List

Converts the string representation of a number to its 32-bit signed integer equivalent.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function Parse(String) As Integer
[C#] public static int Parse(string);
[C++] public: static int Parse(String*);
[JScript] public static function Parse(String) : int;

Converts the string representation of a number in a specified culture-specific format to its 32-bit signed integer equivalent.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function Parse(String, IFormatProvider) As Integer
[C#] public static int Parse(string, IFormatProvider);
[C++] public: static int Parse(String*, IFormatProvider*);
[JScript] public static function Parse(String, IFormatProvider) : int;

Converts the string representation of a number in a specified style to its 32-bit signed integer equivalent.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function Parse(String, NumberStyles) As Integer
[C#] public static int Parse(string, NumberStyles);
[C++] public: static int Parse(String*, NumberStyles);
[JScript] public static function Parse(String, NumberStyles) : int;

Converts the string representation of a number in a specified style and culture-specific format to its 32-bit signed integer equivalent.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function Parse(String, NumberStyles, IFormatProvider) As Integer
[C#] public static int Parse(string, NumberStyles, IFormatProvider);
[C++] public: static int Parse(String*, NumberStyles, IFormatProvider*);
[JScript] public static function Parse(String, NumberStyles, IFormatProvider) : int;

See Also

Int32 Structure | Int32 Members | System Namespace

Show:
© 2015 Microsoft