语言

KeyValueConfigurationCollection.Item[String] 属性

定义

KeyValueConfigurationElement根据提供的参数获取对象。

public:
 property System::Configuration::KeyValueConfigurationElement ^ default[System::String ^] { System::Configuration::KeyValueConfigurationElement ^ get(System::String ^ key); };
public System.Configuration.KeyValueConfigurationElement this[string key] { get; }
member this.Item(string) : System.Configuration.KeyValueConfigurationElement
Default Public ReadOnly Property Item(key As String) As KeyValueConfigurationElement

参数

key
String

集合中包含的键 KeyValueConfigurationElement 。

属性值

配置元素,或者 null 集合中不存在键。

注解

使用Item[]属性基于KeyValueConfigurationElement参数获取key集合中的对象。

适用于