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 to Entities クエリ内でのみ使用できます。

この関数は、データベース内の対応する関数に変換されます。 対応するSQL Server関数の詳細については、REPLICATE (Transact-SQL) を参照してください。

適用対象