HttpModuleActionCollection.RemoveAt(Int32) 메서드

정의

컬렉션에서 지정된 인덱스의 HttpModuleAction 모듈을 제거합니다.

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

매개 변수

index
Int32

제거할 모듈의 HttpModuleAction 인덱스입니다.

예외

컬렉션에 지정된 인덱스에서 개체가 없거나 HttpModuleAction 요소가 이미 제거되었거나 컬렉션이 읽기 전용입니다.

예제

다음 예제에서는 컬렉션에서 모듈을 HttpModuleAction 제거하는 방법을 보여줍니다.


// Remove the module from the collection.
if (!httpModulesSection.SectionInformation.IsLocked)
{
    modulesCollection.RemoveAt(0);
    configuration.Save();
}
' Remove the module from the collection.
If Not httpModulesSection.SectionInformation.IsLocked Then
    modulesCollection.RemoveAt(0)
    configuration.Save()
End If

설명

이 메서드는 <remove> 상위 수준 구성 파일에 정의된 모든 요소에 대한 구성 파일의 적절한 섹션에 요소를 삽입합니다. 요소가 현재 구성 파일의 적절한 섹션에 정의된 경우 해당 항목은 구성 파일에서 제거됩니다. 제거할 개체가 컬렉션에 있어야 합니다.

적용 대상