ClientTargetCollection.RemoveAt(Int32) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 컬렉션 인덱스가 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 를 효과적으로 제거하지만 삭제하지는 않습니다.