Share via


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[]使用 属性基于 key 参数获取KeyValueConfigurationElement集合中的 对象。

适用于