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 컬렉션 인덱스입니다.

예제

다음 코드 예제에서는 개체UrlMappingUrlMappingCollection 제거 합니다.

컬렉션을 가져오는 방법을 알아보려면 클래스 항목의 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 를 효과적으로 제거하지만 삭제하지는 않습니다.

적용 대상

추가 정보