NameValueConfigurationCollection.Item[String] 속성

정의

제공된 매개 변수에 따라 NameValueConfigurationElement 개체를 가져오거나 설정합니다.

public:
 property System::Configuration::NameValueConfigurationElement ^ default[System::String ^] { System::Configuration::NameValueConfigurationElement ^ get(System::String ^ name); void set(System::String ^ name, System::Configuration::NameValueConfigurationElement ^ value); };
public System.Configuration.NameValueConfigurationElement this[string name] { get; set; }
member this.Item(string) : System.Configuration.NameValueConfigurationElement with get, set
Default Public Property Item(name As String) As NameValueConfigurationElement

매개 변수

name
String

컬렉션에 포함된 NameValueConfigurationElement의 이름입니다.

속성 값

NameValueConfigurationElement 개체입니다.

예제

다음 코드 예제를 사용 하는 방법에 설명 합니다 Item[] 속성입니다. 이 코드 예제는에 대해 제공 된 큰 예제의 일부는 NameValueConfigurationCollection 클래스입니다.

// Item property.
Console.WriteLine("Value of property 'enabled': {0}",
 myNameValConfigCollection["enabled"].Value);
' Item property.
Console.WriteLine("Value of property 'enabled': {0}", myNameValConfigCollection("enabled").Value)

설명

사용 된 Item[] 속성을 가져오기 또는 매개 변수에 따라 개체를 NameValueConfigurationElement 설정 합니다 name .

적용 대상