ExtensionElementCollection.GetElementKey(ConfigurationElement) 方法

定义

获取指定配置元素的元素键。Gets the element key for the specified configuration element.

protected:
 override System::Object ^ GetElementKey(System::Configuration::ConfigurationElement ^ element);
protected override object GetElementKey (System.Configuration.ConfigurationElement element);
override this.GetElementKey : System.Configuration.ConfigurationElement -> obj
Protected Overrides Function GetElementKey (element As ConfigurationElement) As Object

参数

element
ConfigurationElement

要为其返回键的 ConfigurationElementThe ConfigurationElement to return the key for.

返回

Object

一个 Object,用作指定配置元素的键。An Object that acts as the key for the specified configuration element.

例外

elementnull 或空。element is null or empty.

适用于