SqlCeFunctions.Stuff Method (String, Nullable<Int32>, Nullable<Int32>, String)
Inserts a string into another string. It deletes a specified length of characters in the target string at the start position and then inserts the second string into the target string at the start position.
Assembly: EntityFramework.SqlServerCompact (in EntityFramework.SqlServerCompact.dll)
[DbFunctionAttribute("SqlServerCe", "STUFF")] [SuppressMessageAttribute("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "string")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "stringReplacement")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "start")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "length")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "stringInput")] public static string Stuff( string stringInput, Nullable<int> start, Nullable<int> length, string stringReplacement )
Parameters
- stringInput
-
Type:
System.String
The target string.
- start
-
Type:
System.Nullable<Int32>
The character position in stringinput where the replacement string is to be inserted.
- length
-
Type:
System.Nullable<Int32>
The number of characters to delete from stringInput . If length is longer than stringInput , deletion occurs up to the last character in stringReplacement .
- stringReplacement
-
Type:
System.String
The substring to be inserted into stringInput .