/// <summary>
        ///		Creates a new DictionarySectionHandler object and adds the object to the collection.
        /// </summary>
        /// <param name="parent">Composed from the configuration settings in a corresponding parent configuration section.</param>
        /// <param name="context">Provides access to the virtual path for which the configuration section handler computes configuration values. Normally this parameter is reserved and is null.</param>
        /// <param name="section">The XML node that contains the configuration information to be handled. section provides direct access to the XML contents of the configuration section.</param>
        /// <returns></returns>
        public virtual object Create(object parent, object context, XmlNode section)
        {
#if (XML_DEP)
            return(ConfigHelper.GetDictionary(parent as IDictionary, section,
                                              KeyAttributeName, ValueAttributeName));
#else
            return(null);
#endif
        }
Exemplo n.º 2
0
 /// <summary>
 ///		Creates a new DictionarySectionHandler object and adds the object to the collection.
 /// </summary>
 /// <param name="parent">Composed from the configuration settings in a corresponding parent configuration section.</param>
 /// <param name="context">Provides access to the virtual path for which the configuration section handler computes configuration values. Normally this parameter is reserved and is null.</param>
 /// <param name="section">The XML node that contains the configuration information to be handled. section provides direct access to the XML contents of the configuration section.</param>
 /// <returns></returns>
 public virtual object Create(object parent, object context, XmlNode section)
 {
     return(ConfigHelper.GetDictionary(parent as IDictionary, section,
                                       KeyAttributeName, ValueAttributeName));
 }