UrlMappingCollection.RemoveAt(Int32) 메서드

정의

컬렉션에서 지정된 인덱스를 가진 UrlMapping개체를 제거합니다.

public:
 void RemoveAt(int index);
public void RemoveAt (int index);
member this.RemoveAt : int -> unit
Public Sub RemoveAt (index As Integer)

매개 변수

index
Int32

제거할 UrlMapping 개체의 컬렉션 인덱스입니다.

예제

다음 코드 예제를 제거 합니다 UrlMapping 에서 개체를 UrlMappingCollection입니다.

코드 예제에서는 참조는 UrlMappingCollection 클래스 항목 컬렉션을 가져오는 방법을 알아봅니다.


// Remove the URL at the 
// specified index from the collection.
urlMappings.RemoveAt(0);

// Update the configuration file.
if (!urlMappingSection.IsReadOnly())
  configuration.Save();
' Remove the URL at the 
' specified index from the collection.
urlMappings.RemoveAt(0)

' Update the configuration file.
If Not urlMappingSection.IsReadOnly() Then
    configuration.Save()
End If

설명

RemoveAt 메서드를 add 요소에는 urlMappings 삽입 고 현재 계층 구조 수준에 있는 섹션을 remove 요소입니다. Remove 요소에 대 한 참조를 효과적으로 제거 합니다 add 부모 구성에 정의 된 요소 파일 계층 구조에서 상위 수준에 있지만 삭제 하지 않습니다.

적용 대상

추가 정보