SqlFunctions.Replicate(String, Nullable<Int32>) 方法

定義

將字串值重複指定的次數。

public:
 static System::String ^ Replicate(System::String ^ target, Nullable<int> count);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "REPLICATE")]
public static string Replicate(string target, int? count);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "REPLICATE")>]
static member Replicate : string * Nullable<int> -> string
Public Shared Function Replicate (target As String, count As Nullable(Of Integer)) As String

參數

target
String

一個有效的字串。

count
Nullable<Int32>

指定重複 target次數的值。

傳回

目標字串,重複次數由 count

屬性

備註

你不能直接呼叫這個函式。 此函式只能出現在 LINQ 對 Entities 查詢中。

這個函式會被轉換成資料庫中的對應函式。 關於對應的SQL Server函數,請參見 REPLICATE (Transact-SQL)

適用於