String.Create<TState>(Int32, TState, SpanAction<Char,TState>) 메서드

정의

특정 길이의 새 문자열을 만든 다음 지정된 콜백을 사용하여 문자열을 초기화합니다.Creates a new string with a specific length and initializes it after creation by using the specified callback.

public:
generic <typename TState>
 static System::String ^ Create(int length, TState state, System::Buffers::SpanAction<char, TState> ^ action);
public static string Create<TState> (int length, TState state, System.Buffers.SpanAction<char,TState> action);
static member Create : int * 'State * System.Buffers.SpanAction<char, 'State> -> string
Public Shared Function Create(Of TState) (length As Integer, state As TState, action As SpanAction(Of Char, TState)) As String

형식 매개 변수

TState

action에 전달할 요소의 형식입니다.The type of the element to pass to action.

매개 변수

length
Int32

만들 문자열의 길이입니다.The length of the string to create.

state
TState

action에 전달할 요소입니다.The element to pass to action.

action
SpanAction<Char,TState>

문자열을 초기화할 콜백입니다.A callback to initialize the string.

반환

만든 문자열입니다.The created string.

적용 대상