NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Int32.FromString

Parses an Int32 from a String.

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

Parameters

s
The string containing a number to convert.

Return Value

The Int32 value of the string.

Remarks

The Int32 method returns a signed int from parsing a string. The default (locale-neutral) NumberFormatInfo is used (see NumberFormatInfo or CultureInfo for more information on numeric and culture formats).

Use Parse and Format for locale dependent strings.

The output from ToString should be consumable by FromString().

See Also

Int32 Structure | Int32 Members | System Namespace