SingleType.FromString SingleType.FromString SingleType.FromString SingleType.FromString Method

Definition

Returns a Single value that corresponds to the specified string and optional number format information.

Overloads

FromString(String) FromString(String) FromString(String) FromString(String)

Returns a Single value that corresponds to the specified string.

FromString(String, NumberFormatInfo) FromString(String, NumberFormatInfo) FromString(String, NumberFormatInfo) FromString(String, NumberFormatInfo)

Returns a Single value that corresponds to the specified string and number format information.

Remarks

This class supports the Visual Basic compiler and is not intended to be used directly from your code.

FromString(String) FromString(String) FromString(String) FromString(String)

Returns a Single value that corresponds to the specified string.

public:
 static float FromString(System::String ^ Value);
public static float FromString (string Value);
static member FromString : string -> single
Public Shared Function FromString (Value As String) As Single

Parameters

Value
String String String String

Required. String to convert to a Single value.

Returns

The Single value that corresponds to Value.

Remarks

This class supports the Visual Basic compiler and is not intended to be used directly from your code.

FromString(String, NumberFormatInfo) FromString(String, NumberFormatInfo) FromString(String, NumberFormatInfo) FromString(String, NumberFormatInfo)

Returns a Single value that corresponds to the specified string and number format information.

public:
 static float FromString(System::String ^ Value, System::Globalization::NumberFormatInfo ^ NumberFormat);
public static float FromString (string Value, System.Globalization.NumberFormatInfo NumberFormat);
static member FromString : string * System.Globalization.NumberFormatInfo -> single
Public Shared Function FromString (Value As String, NumberFormat As NumberFormatInfo) As Single

Parameters

Value
String String String String

Required. String to convert to a Single value.

NumberFormat
NumberFormatInfo NumberFormatInfo NumberFormatInfo NumberFormatInfo

A NumberFormatInfo object that defines how numeric values are formatted and displayed, depending on the culture.

Returns

The Single value corresponding to Value.

Remarks

This class supports the Visual Basic compiler and is not intended to be used directly from your code.

Applies to