다음을 통해 공유


SqlFunctions.Stuff 메서드

정의

문자열을 다른 문자열에 삽입합니다. 대상 문자열의 시작 위치에서 지정된 길이의 문자를 삭제한 다음 두 번째 문자열을 대상 문자열의 시작 위치에 삽입합니다.

[System.Data.Entity.DbFunction("SqlServer", "STUFF")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="start")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="stringInput")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="stringReplacement")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId="string")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="length")]
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

매개 변수

stringInput
String

대상 문자열입니다.

start
Nullable<Int32>

대체 문자열이 삽입될 stringinput의 문자 위치입니다.

length
Nullable<Int32>

stringInput 에서 삭제할 문자 수입니다. length가 stringInput보다 긴 경우 삭제는 stringReplacement 의 마지막 문자까지 발생합니다.

stringReplacement
String

stringInput 에 삽입할 부분 문자열입니다.

반환

두 문자열로 구성된 문자열입니다.

특성

적용 대상