ProfilePropertySettingsCollection.Remove(String) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
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 이름입니다.
예외
예제
다음 코드 예제에서는 메서드를 사용 하는 방법을 보여 있습니다 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 상위 수준 구성 파일에 정의된 모든 요소에 대한 구성 파일의 적절한 섹션에 요소를 삽입합니다. 요소가 현재 구성 파일의 적절한 섹션에 정의된 경우 해당 항목은 구성 파일에서 제거됩니다. 제거할 개체가 컬렉션에 있어야 합니다.