다음을 통해 공유


RegexCollection.Insert(Int32, Regex) 메서드

정의

RegexCollection의 지정된 인덱스에 요소를 삽입합니다.

public:
 void Insert(int index, System::Text::RegularExpressions::Regex ^ value);
public void Insert(int index, System.Text.RegularExpressions.Regex value);
abstract member Insert : int * System.Text.RegularExpressions.Regex -> unit
Public Sub Insert (index As Integer, value As Regex)

매개 변수

index
Int32

value을 삽입해야 하는 인덱스(0부터 시작)입니다.

value
Regex

삽입할 정규식입니다.

예외

index 가 0보다 작거나 가 index 보다 Count큽니다.

RegexCollection 읽기 전용입니다.-또는 -The RegexCollection 의 크기가 고정되어 있습니다.

설명

이미 용량과 같으면 Count 새 요소가 삽입되기 전에 내부 배열을 자동으로 재할당하여 목록의 용량이 두 배로 증가합니다.

하는 경우 index 값과 같음 Countvalue 끝에 추가 됩니다 RegexCollection합니다.

적용 대상