DecimalType.FromString 方法

定義

回傳 Decimal 對應指定字串的值及可選的數字格式資訊。

多載

名稱 Description
FromString(String)

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

回傳 Decimal 一個對應指定字串的值。

FromString(String, NumberFormatInfo)

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

回傳 Decimal 一個對應於指定字串與數字格式資訊的值。

備註

這門課支援 Visual Basic 編譯器,並非直接從你的程式碼中使用。

FromString(String)

回傳 Decimal 一個對應指定字串的值。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
 static System::Decimal FromString(System::String ^ Value);
public static decimal FromString(string Value);
static member FromString : string -> decimal
Public Function FromString (Value As String) As Decimal
Public Shared Function FromString (Value As String) As Decimal

參數

Value
String

必須的。 字串要轉換成一個 Decimal 值。

傳回

對應於的Value值。Decimal

備註

這門課支援 Visual Basic 編譯器,並非直接從你的程式碼中使用。

適用於

FromString(String, NumberFormatInfo)

回傳 Decimal 一個對應於指定字串與數字格式資訊的值。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

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

參數

Value
String

必須的。 字串要轉換成一個 Decimal 值。

NumberFormat
NumberFormatInfo

一個 NumberFormatInfo 定義數字值格式化與顯示方式的物件,依文化而定。

傳回

對應於的Value值。Decimal

備註

這門課支援 Visual Basic 編譯器,並非直接從你的程式碼中使用。

適用於