语言

SqlCeFunctions.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("SqlServerCe", "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("SqlServerCe", "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("SqlServerCe", "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("SqlServerCe", "STR")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="length")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="number")]
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("SqlServerCe", "STR")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="decimalArg")]
[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, 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。 如果小数大于 16,则结果截断为小数点右侧的 16 位。

返回

转换为字符串的输入表达式。

特性

适用于

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

返回由数字数据转换来的字符数据。

[System.Data.Entity.DbFunction("SqlServerCe", "STR")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="length")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="decimalArg")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="number")]
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。 如果小数大于 16,则结果截断为小数点右侧的 16 位。

返回

转换为字符串的数字输入表达式。

特性

适用于