ClientTargetCollection.RemoveAt(Int32) 메서드

정의

지정된 컬렉션 인덱스가 ClientTarget 있는 개체를 제거합니다.

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

매개 변수

index
Int32

제거할 컬렉션 인 ClientTarget 덱스입니다.

예제

다음 코드 예제에서는 컬렉션에서 개체를 제거 합니다 ClientTargetClientTargetCollection .

컬렉션을 가져오는 방법에 대한 자세한 내용은 클래스 개요의 코드 예제를 ClientTargetCollection 참조하세요.


// Remove the client target at the 
// specified index from the collection.
clientTargets.RemoveAt(0);

// Update the configuration file.
if (!clientTargetSection.IsReadOnly())
  configuration.Save();
' Remove the client target at the 
' specified index from the collection.
clientTargets.RemoveAt(0)

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

설명

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

적용 대상

추가 정보