HttpModuleActionCollection.RemoveAt(Int32) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
컬렉션에서 지정된 인덱스의 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> 상위 수준 구성 파일에 정의된 모든 요소에 대한 구성 파일의 적절한 섹션에 요소를 삽입합니다. 요소가 현재 구성 파일의 적절한 섹션에 정의된 경우 해당 항목은 구성 파일에서 제거됩니다. 제거할 개체가 컬렉션에 있어야 합니다.