SqlFunctions.Space(Nullable<Int32>) SqlFunctions.Space(Nullable<Int32>) SqlFunctions.Space(Nullable<Int32>) SqlFunctions.Space(Nullable<Int32>) Method

Definition

Returns a string of repeated spaces.

public:
 static System::String ^ Space(Nullable<int> arg1);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "SPACE")]
public static string Space (Nullable<int> arg1);
static member Space : Nullable<int> -> string
Public Shared Function Space (arg1 As Nullable(Of Integer)) As String

Parameters

arg1
Nullable<Int32>

The number of spaces. If negative, a null string is returned.

Returns

A string that consists of the specified number of spaces.

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see SPACE (Transact-SQL).

Applies to