DecimalType.FromString Method   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a Decimal value that corresponds to the specified string and optional number format information.
Overloads
| FromString(String) | This API supports the product infrastructure and is not intended to be used directly from your code. Returns a  | 
| FromString(String, NumberFormatInfo) | This API supports the product infrastructure and is not intended to be used directly from your code. Returns a  | 
Remarks
This class supports the Visual Basic compiler and is not intended to be used directly from your code.
FromString(String)
- Source:
- DecimalType.vb
- Source:
- DecimalType.vb
- Source:
- DecimalType.vb
- Source:
- DecimalType.vb
Returns a Decimal value that corresponds to the specified string.
This API supports the product infrastructure and is not intended to be used directly from your code.
public:
 static System::Decimal FromString(System::String ^ Value);public static decimal FromString(string? Value);public static decimal FromString(string Value);static member FromString : string -> decimalPublic Shared Function FromString (Value As String) As DecimalPublic Function FromString (Value As String) As DecimalParameters
- Value
- String
Required. String to convert to a Decimal value.
Returns
The Decimal value that corresponds to Value.
Remarks
This class supports the Visual Basic compiler and is not intended to be used directly from your code.
Applies to
FromString(String, NumberFormatInfo)
- Source:
- DecimalType.vb
- Source:
- DecimalType.vb
- Source:
- DecimalType.vb
- Source:
- DecimalType.vb
Returns a Decimal value that corresponds to the specified string and number format information.
This API supports the product infrastructure and is not intended to be used directly from your code.
public:
 static System::Decimal FromString(System::String ^ Value, System::Globalization::NumberFormatInfo ^ NumberFormat);public static decimal FromString(string? Value, System.Globalization.NumberFormatInfo? NumberFormat);public static decimal FromString(string Value, System.Globalization.NumberFormatInfo NumberFormat);static member FromString : string * System.Globalization.NumberFormatInfo -> decimalPublic Shared Function FromString (Value As String, NumberFormat As NumberFormatInfo) As DecimalPublic Function FromString (Value As String, NumberFormat As NumberFormatInfo) As DecimalParameters
- Value
- String
Required. String to convert to a Decimal value.
- NumberFormat
- NumberFormatInfo
A NumberFormatInfo object that defines how numeric values are formatted and displayed, depending on the culture.
Returns
The Decimal value that corresponds to Value.
Remarks
This class supports the Visual Basic compiler and is not intended to be used directly from your code.