EventMappingSettingsCollection.RemoveAt(Int32) 메서드

정의

컬렉션에서 EventMappingSettings 개체를 제거합니다.

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

매개 변수

index
Int32

컬렉션에 있는 EventMappingSettings 개체의 인덱스입니다.

예외

지정된 인덱스를 가진 EventMappingSettings 개체가 컬렉션에 없거나, 요소가 이미 제거되었거나, 컬렉션이 읽기 전용인 경우

예제

다음 코드 예제에서는 RemoveAt 메서드를 사용하는 방법을 보여 줍니다. 이 코드 예제는에 대해 제공 된 큰 예제의 일부는 HealthMonitoringSection 클래스입니다.

// Remove an EventMappingsSettings object from the EventMappings collection property.
healthMonitoringSection.EventMappings.RemoveAt(0);
' Remove an EventMappingsSettings object from the EventMappings collection property.
healthMonitoringSection.EventMappings.RemoveAt(0)

설명

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

적용 대상

추가 정보