Share via


ProfilePropertySettingsCollection.Remove(String) 메서드

정의

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

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

매개 변수

name
String

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

예외

컬렉션에 지정된 키를 가진 ProfilePropertySettings 개체가 없는 경우

또는 요소가 이미 제거된 경우

또는 컬렉션이 읽기 전용입니다.

예제

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

// Remove a PropertySettings from the group.
newPropGroup.PropertySettings.Remove("AvatarImage");
newPropGroup.PropertySettings.RemoveAt(0);
' Remove a PropertySettings from the group.
newPropGroup.PropertySettings.Remove("AvatarImage")
newPropGroup.PropertySettings.RemoveAt(0)

설명

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

적용 대상

추가 정보