ProfileSettingsCollection.Remove(String) 메서드

정의

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

public:
 void Remove(System::String ^ name);
public void Remove(string name);
member this.Remove : string -> unit
Public Sub Remove (name As String)

매개 변수

name
String

컬렉션에서 제거할 개체의 ProfileSettings 이름입니다.

예외

컬렉션에 지정된 키를 가진 개체가 없거나 ProfileSettings 요소가 이미 제거되었거나 컬렉션이 읽기 전용입니다.

예제

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

// Remove a ProfileSettings object from the Profiles collection property.
healthMonitoringSection.Profiles.Remove("Default");
' Remove a ProfileSettings object from the Profiles collection property.
healthMonitoringSection.Profiles.Remove("Default")

설명

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

적용 대상

추가 정보