CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums


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

Namespace: ?System
Assembly: ?mscorlib (in mscorlib.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function Parse ( _
	s As String, _
	style As NumberStyles, _
	provider As IFormatProvider _
) As Long
C#
public static long Parse(
	string s,
	NumberStyles style,
	IFormatProvider provider
)
Visual C++
public:
static long long Parse(
	String^ s, 
	NumberStyles style, 
	IFormatProvider^ provider
)
JavaScript
System.Int64.parse = function(s, style, provider);

Parameters

s
Type: System..::.String
A string containing a number to convert.
style
Type: System.Globalization..::.NumberStyles
A bitwise combination of NumberStyles values that indicates the permitted format of s. A typical value to specify is Integer.
provider
Type: System..::.IFormatProvider
An IFormatProvider that supplies culture-specific formatting information about s.

Return Value

A 64-bit signed integer equivalent to the number specified in s.

Exceptions

ExceptionCondition
System..::.ArgumentExceptionstyle is not a NumberStyles value. -or-style is not a combination of AllowHexSpecifier and HexNumber values.
System..::.ArgumentNullExceptions is null.
System..::.OverflowExceptions represents a number less than MinValue or greater than MaxValue.
System..::.FormatExceptions is not in a format compliant with style.

See Also



Free Download:
   
  Privacy | Contact Us
All Times Are GMT