RouteCollection.InsertItem(Int32, RouteBase) 메서드

정의

RouteCollection 개체의 지정된 인덱스에 지정된 경로를 삽입합니다.

protected:
 override void InsertItem(int index, System::Web::Routing::RouteBase ^ item);
protected override void InsertItem (int index, System.Web.Routing.RouteBase item);
override this.InsertItem : int * System.Web.Routing.RouteBase -> unit
Protected Overrides Sub InsertItem (index As Integer, item As RouteBase)

매개 변수

index
Int32

item을 삽입할 인덱스(0부터 시작)입니다.

item
RouteBase

삽입할 경로입니다.

예외

item이(가) null인 경우

item 이 이미 컬렉션에 있는 경우

설명

개체에 명명되지 않은 경로를 RouteCollection 추가하는 경우 컬렉션에 이미 있는 경로를 추가할 수 없습니다.

GetReadLock 메서드와 메서드를 GetWriteLock 사용하여 다른 프로세스와 충돌하지 않고 컬렉션과 상호 작용하도록 합니다.

적용 대상

추가 정보