Bewerken

Delen via


DecimalType.Parse(String, NumberFormatInfo) Method

Definition

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 Parse(System::String ^ Value, System::Globalization::NumberFormatInfo ^ NumberFormat);
public static decimal Parse (string Value, System.Globalization.NumberFormatInfo? NumberFormat);
public static decimal Parse (string Value, System.Globalization.NumberFormatInfo NumberFormat);
static member Parse : string * System.Globalization.NumberFormatInfo -> decimal
Public Shared Function Parse (Value As String, NumberFormat As NumberFormatInfo) As Decimal
Public Function Parse (Value As String, NumberFormat As NumberFormatInfo) As Decimal

Parameters

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.

Applies to