/// <summary>
        /// Gets the element key for a specified configuration element when overridden in a derived class.
        /// </summary>
        /// <returns>
        /// An <see cref="T:System.Object"/> that acts as the key for the specified <see cref="EnvironmentOverriddenProtectionProviderElement"/>.
        /// </returns>
        /// <param name="element">The <see cref="EnvironmentOverriddenProtectionProviderElement"/> to return the key for. </param>
        protected override object GetElementKey(ConfigurationElement element)
        {
            EnvironmentOverriddenProtectionProviderElement protectionProviderElement = element as EnvironmentOverriddenProtectionProviderElement;

            if (protectionProviderElement != null)
            {
                return(protectionProviderElement.ContainingSectionXPath);
            }
            throw new InvalidOperationException();
        }
 /// <summary>
 /// Removes a <see cref="EnvironmentOverriddenProtectionProviderElement"/> instance from the collection.
 /// </summary>
 /// <param name="protectionProviderOverride">The <see cref="EnvironmentOverriddenProtectionProviderElement"/> instance that should be removed from the collection.</param>
 public void Remove(EnvironmentOverriddenProtectionProviderElement protectionProviderOverride)
 {
     base.BaseRemove(GetElementKey(protectionProviderOverride));
 }
 /// <summary>
 /// Adds a new <see cref="EnvironmentOverriddenProtectionProviderElement"/> instance to the collection.
 /// </summary>
 /// <param name="protectionProviderOverride">The <see cref="EnvironmentOverriddenProtectionProviderElement"/> instance that should be added to the collection.</param>
 public void Add(EnvironmentOverriddenProtectionProviderElement protectionProviderOverride)
 {
     base.BaseAdd(protectionProviderOverride);
 }
 /// <summary>
 /// Removes a <see cref="EnvironmentOverriddenProtectionProviderElement"/> instance from the collection.
 /// </summary>
 /// <param name="protectionProviderOverride">The <see cref="EnvironmentOverriddenProtectionProviderElement"/> instance that should be removed from the collection.</param>
 public void Remove(EnvironmentOverriddenProtectionProviderElement protectionProviderOverride)
 {
     base.BaseRemove(GetElementKey(protectionProviderOverride));
 }
 /// <summary>
 /// Adds a new <see cref="EnvironmentOverriddenProtectionProviderElement"/> instance to the collection.
 /// </summary>
 /// <param name="protectionProviderOverride">The <see cref="EnvironmentOverriddenProtectionProviderElement"/> instance that should be added to the collection.</param>
 public void Add(EnvironmentOverriddenProtectionProviderElement protectionProviderOverride)
 {
     base.BaseAdd(protectionProviderOverride);
 }