共用方式為


SqlFunctions.StringConvert 方法

定義

多載

StringConvert(Nullable<Decimal>)

傳回從數值資料轉換而來的字元資料。

StringConvert(Nullable<Double>)

傳回從數值資料轉換而來的字元資料。

StringConvert(Nullable<Decimal>, Nullable<Int32>)

傳回從數值資料轉換而來的字元資料。

StringConvert(Nullable<Double>, Nullable<Int32>)

傳回從數值資料轉換而來的字元資料。

StringConvert(Nullable<Decimal>, Nullable<Int32>, Nullable<Int32>)

傳回從數值資料轉換而來的字元資料。

StringConvert(Nullable<Double>, Nullable<Int32>, Nullable<Int32>)

傳回從數值資料轉換而來的字元資料。

StringConvert(Nullable<Decimal>)

傳回從數值資料轉換而來的字元資料。

[System.Data.Entity.DbFunction("SqlServer", "STR")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="number")]
public static string StringConvert(Nullable<decimal> number);
static member StringConvert : Nullable<decimal> -> string
Public Shared Function StringConvert (number As Nullable(Of Decimal)) As String

參數

number
Nullable<Decimal>

一個數值運算式。

傳回

轉換成字串的輸入運算式。

屬性

適用於

StringConvert(Nullable<Double>)

傳回從數值資料轉換而來的字元資料。

[System.Data.Entity.DbFunction("SqlServer", "STR")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="number")]
public static string StringConvert(Nullable<double> number);
static member StringConvert : Nullable<double> -> string
Public Shared Function StringConvert (number As Nullable(Of Double)) As String

參數

number
Nullable<Double>

一個數值運算式。

傳回

轉換成字串的數字輸入運算式。

屬性

適用於

StringConvert(Nullable<Decimal>, Nullable<Int32>)

傳回從數值資料轉換而來的字元資料。

[System.Data.Entity.DbFunction("SqlServer", "STR")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="number")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="length")]
public static string StringConvert(Nullable<decimal> number, Nullable<int> length);
static member StringConvert : Nullable<decimal> * Nullable<int> -> string
Public Shared Function StringConvert (number As Nullable(Of Decimal), length As Nullable(Of Integer)) As String

參數

number
Nullable<Decimal>

一個數值運算式。

length
Nullable<Int32>

字串的總長度。 其中包括小數點、正負號、數字和空格。 預設值為 10。

傳回

轉換成字串的輸入運算式。

屬性

適用於

StringConvert(Nullable<Double>, Nullable<Int32>)

傳回從數值資料轉換而來的字元資料。

[System.Data.Entity.DbFunction("SqlServer", "STR")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="number")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="length")]
public static string StringConvert(Nullable<double> number, Nullable<int> length);
static member StringConvert : Nullable<double> * Nullable<int> -> string
Public Shared Function StringConvert (number As Nullable(Of Double), length As Nullable(Of Integer)) As String

參數

number
Nullable<Double>

一個數值運算式。

length
Nullable<Int32>

字串的總長度。 其中包括小數點、正負號、數字和空格。 預設值為 10。

傳回

轉換成字串的數字輸入運算式。

屬性

適用於

StringConvert(Nullable<Decimal>, Nullable<Int32>, Nullable<Int32>)

傳回從數值資料轉換而來的字元資料。

[System.Data.Entity.DbFunction("SqlServer", "STR")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="number")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="decimalArg")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="length")]
public static string StringConvert(Nullable<decimal> number, Nullable<int> length, Nullable<int> decimalArg);
static member StringConvert : Nullable<decimal> * Nullable<int> * Nullable<int> -> string
Public Shared Function StringConvert (number As Nullable(Of Decimal), length As Nullable(Of Integer), decimalArg As Nullable(Of Integer)) As String

參數

number
Nullable<Decimal>

一個數值運算式。

length
Nullable<Int32>

字串的總長度。 其中包括小數點、正負號、數字和空格。 預設值為 10。

decimalArg
Nullable<Int32>

小數點右邊的位數。 小數位數必須小於或等於 16。 如果 decimal 大於 16,則結果就會截斷為小數點右方的十六位數。

傳回

轉換成字串的輸入運算式。

屬性

適用於

StringConvert(Nullable<Double>, Nullable<Int32>, Nullable<Int32>)

傳回從數值資料轉換而來的字元資料。

[System.Data.Entity.DbFunction("SqlServer", "STR")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="number")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="length")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="decimalArg")]
public static string StringConvert(Nullable<double> number, Nullable<int> length, Nullable<int> decimalArg);
static member StringConvert : Nullable<double> * Nullable<int> * Nullable<int> -> string
Public Shared Function StringConvert (number As Nullable(Of Double), length As Nullable(Of Integer), decimalArg As Nullable(Of Integer)) As String

參數

number
Nullable<Double>

一個數值運算式。

length
Nullable<Int32>

字串的總長度。 其中包括小數點、正負號、數字和空格。 預設值為 10。

decimalArg
Nullable<Int32>

小數點右邊的位數。 小數位數必須小於或等於 16。 如果 decimal 大於 16,則結果就會截斷為小數點右方的十六位數。

傳回

轉換成字串的數字輸入運算式。

屬性

適用於