Udostępnij za pośrednictwem


SqlCeFunctions.Stuff Metoda

Definicja

Wstawia ciąg do innego ciągu. Usuwa określoną długość znaków w ciągu docelowym w pozycji początkowej, a następnie wstawia drugi ciąg do ciągu docelowego w pozycji początkowej.

[System.Data.Entity.DbFunction("SqlServerCe", "STUFF")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId="string")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="stringReplacement")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="start")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="length")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="stringInput")]
public static string Stuff (string stringInput, Nullable<int> start, Nullable<int> length, string stringReplacement);
static member Stuff : string * Nullable<int> * Nullable<int> * string -> string
Public Shared Function Stuff (stringInput As String, start As Nullable(Of Integer), length As Nullable(Of Integer), stringReplacement As String) As String

Parametry

stringInput
String

Ciąg docelowy.

start
Nullable<Int32>

Pozycja znaku w ciąguinput, gdzie ciąg zastępczy ma zostać wstawiony.

length
Nullable<Int32>

Liczba znaków do usunięcia z ciąguInput . Jeśli długość jest dłuższa niż stringInput, usunięcie występuje do ostatniego znaku w ciąguReplacement .

stringReplacement
String

Podciąg, który ma zostać wstawiony do ciąguInput .

Zwraca

Ciąg składający się z dwóch ciągów.

Atrybuty

Dotyczy