ParserErrorCollection.Insert(Int32, ParserError) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 ParserError 인덱스의 컬렉션에 지정된 개체를 삽입합니다.
public:
void Insert(int index, System::Web::ParserError ^ value);
public void Insert(int index, System.Web.ParserError value);
member this.Insert : int * System.Web.ParserError -> unit
Public Sub Insert (index As Integer, value As ParserError)
매개 변수
- index
- Int32
를 삽입할 컬렉션 내의 인덱스입니다 ParserError.
- value
- ParserError
ParserError 컬렉션에 삽입할 개체입니다.
예제
다음 코드 예제에서는 컬렉션의 지정된 인 ParserError 덱스에 개체를 삽입하는 ParserErrorCollection 방법을 보여 줍니다.
// Insert a ParserError at index 0 of the collection.
ParserError error = new ParserError("Error", "Path", 1);
collection.Insert(0, error);
// Remove the specified ParserError from the collection.
collection.Remove(error);
' Insert a ParserError at index 0 of the collection.
Dim [error] As New ParserError("Error", "Path", 1)
collection.Insert(0, [error])
' Remove the specified ParserError from the collection.
collection.Remove([error])
설명
이 메서드를 Insert 사용하여 컬렉션 내의 특정 인덱스에서 기존 ParserError 개체를 삽입합니다.
동일한 ParserError 개체를 컬렉션에 두 번 이상 추가할 수 없습니다. 컬렉션에 Insert 이미 있는 메서드를 사용하여 메서드를 ParserError 호출하면 삽입이 실패합니다. Contains 삽입 전에 메서드를 사용하여 특정 ParserError 항목이 컬렉션에 이미 있는지 확인합니다. 컬렉션 내의 위치를 ParserError 변경하려면 먼저 메서드를 사용하여 제거한 다음 , 를 사용하여 RemoveInsert원하는 인덱스로 삽입해야 합니다.