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!

Convert.ToDouble (String)

Converts a String to a Double.

[Visual Basic]
Overloads Public Shared Function ToDouble( _
   ByVal value As String _
) As Double
[C#]
public static double ToDouble(
   string value
);
[C++]
public: static double ToDouble(
   String* value
);
[JScript]
public static function ToDouble(
   value : String
) : double;

Parameters

value
A string representation of a Double value.

Return Value

The Double with the value represented by value.

Exceptions

Exception Type Condition
ArgumentException value is null.
FormatException value does not contain a representation that can be converted to a Double using the Parse(String) method implemented by that type.
OverflowException value represents a number that is less than Double.MinValue or greater than Double.MaxValue.

Remarks

Implementation is the same as FromString.

See Also

Convert Class | Convert Members | System Namespace | Convert.ToDouble Overload List