System.Configuration.ConfigurationElementCollection.GetElementKeyInternal C# (CSharp) Метод

GetElementKeyInternal() приватный Метод

private GetElementKeyInternal ( ConfigurationElement element ) : Object
element ConfigurationElement
Результат Object
        internal Object GetElementKeyInternal(ConfigurationElement element) {
            Object key = GetElementKey(element);
            if (key == null)
                throw new ConfigurationErrorsException(SR.GetString(SR.Config_base_invalid_element_key));
            return key;
        }

Usage Example

 internal Object GetKey(ConfigurationElementCollection ThisCollection)
 {
     // For items that have been really inserted...
     if (_value != null)
     {
         return ThisCollection.GetElementKeyInternal(_value);
     }
     else
     {
         return _key; // These are items that only have been removed
     }
 }
All Usage Examples Of System.Configuration.ConfigurationElementCollection::GetElementKeyInternal