共用方式為


SqlFunctions.Space(Nullable<Int32>) 方法

定義

傳回重複空格的字串。

[System.Data.Entity.DbFunction("SqlServer", "SPACE")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="arg1")]
public static string Space(Nullable<int> arg1);
static member Space : Nullable<int> -> string
Public Shared Function Space (arg1 As Nullable(Of Integer)) As String

參數

arg1
Nullable<Int32>

空格的數目。 如果是負數,則會傳回 null 字串。

傳回

由指定空格數所組成的字串。

屬性

適用於