NameValueConfigurationCollection.Remove 메서드

정의

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

오버로드

Remove(NameValueConfigurationElement)

제공된 매개 변수에 따라 컬렉션에서 NameValueConfigurationElement 개체를 제거합니다.

Remove(String)

제공된 매개 변수에 따라 컬렉션에서 NameValueConfigurationElement 개체를 제거합니다.

Remove(NameValueConfigurationElement)

Source:
NameValueConfigurationCollection.cs
Source:
NameValueConfigurationCollection.cs
Source:
NameValueConfigurationCollection.cs

제공된 매개 변수에 따라 컬렉션에서 NameValueConfigurationElement 개체를 제거합니다.

public:
 void Remove(System::Configuration::NameValueConfigurationElement ^ nameValue);
public void Remove (System.Configuration.NameValueConfigurationElement nameValue);
member this.Remove : System.Configuration.NameValueConfigurationElement -> unit
Public Sub Remove (nameValue As NameValueConfigurationElement)

매개 변수

예제

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

// Remove domain from the collection.
NameValueConfigurationElement myConfigElement =
    myNameValConfigCollection["domain"];
// Remove method.
myNameValConfigCollection.Remove(myConfigElement);
' Remove domain from the collection.
Dim myConfigElement As NameValueConfigurationElement = myNameValConfigCollection("domain")
' Remove method.
myNameValConfigCollection.Remove(myConfigElement)

설명

메서드를 Remove 사용하여 컬렉션에서 을 NameValueConfigurationElement 제거합니다. 요소를 제거할 때 사용자 지정 동작이 필요한 경우 파생 클래스에서 재정의합니다.

적용 대상

Remove(String)

Source:
NameValueConfigurationCollection.cs
Source:
NameValueConfigurationCollection.cs
Source:
NameValueConfigurationCollection.cs

제공된 매개 변수에 따라 컬렉션에서 NameValueConfigurationElement 개체를 제거합니다.

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

매개 변수

name
String

NameValueConfigurationElement 개체의 이름입니다.

설명

메서드를 Remove 사용하여 컬렉션에서 을 NameValueConfigurationElement 제거합니다. 요소를 제거할 때 사용자 지정 동작이 필요한 경우 파생 클래스에서 재정의합니다.

적용 대상