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 の繰り返し回数を指定する値。

戻り値

引数 target の文字列を、引数 count に指定された回数だけ繰り返した文字列。

属性

注釈

この関数を直接呼び出すことはできません。 この関数は、LINQ to Entities クエリ内でのみ使用できます。

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

適用対象