Share via


SqlCeFunctions.Replicate(String, Nullable<Int32>) Method

Definition

Repeats a string value a specified number of times.

[System.Data.Entity.DbFunction("SqlServerCe", "REPLICATE")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="count")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="target")]
public static string Replicate (string target, Nullable<int> count);
static member Replicate : string * Nullable<int> -> string
Public Shared Function Replicate (target As String, count As Nullable(Of Integer)) As String

Parameters

target
String

A valid string.

count
Nullable<Int32>

The value that specifies how many time to repeat target .

Returns

The target string, repeated the number of times specified by count .

Attributes

Applies to