你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SqlFuncs.StringConvert 方法

定义

重载

StringConvert(Nullable<Double>)

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

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

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

StringConvert(Nullable<Double>)

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

[System.Data.Entity.DbFunction("SqlServer", "STR")]
public static string StringConvert (double? number);
[<System.Data.Entity.DbFunction("SqlServer", "STR")>]
static member StringConvert : Nullable<double> -> string
Public Shared Function StringConvert (number As Nullable(Of Double)) As String

参数

number
Nullable<Double>

数值表达式。

返回

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

属性

适用于

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

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

[System.Data.Entity.DbFunction("SqlServer", "STR")]
public static string StringConvert (double? number, int? length);
[<System.Data.Entity.DbFunction("SqlServer", "STR")>]
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。

返回

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

属性

适用于