コード例 #1
0
        /// <summary>
        /// <para>Retrieves the <see cref="ConfigurationProtector"/> for the section.</para>
        /// </summary>
        /// <param name="sectionName">
        /// <para>The name of the section to get the <see cref="ConfigurationProtector"/></para>
        /// </param>
        /// <returns>
        /// <para>The <see cref="ConfigurationProtector"/> for the section.</para>
        /// </returns>
        public virtual ConfigurationProtector GetConfigurationProtector(string sectionName)
        {
            ConfigurationProtector protector = new ConfigurationProtector();

            protector.Load(ConfigurationContext, sectionName);
            return(protector);
        }
コード例 #2
0
 /// <summary>
 /// <para>Retrieves the <see cref="ConfigurationProtector"/> for the section.</para>
 /// </summary>
 /// <param name="sectionName">
 /// <para>The name of the section to get the <see cref="ConfigurationProtector"/></para>
 /// </param>
 /// <returns>
 /// <para>The <see cref="ConfigurationProtector"/> for the section.</para>
 /// </returns>
 public virtual ConfigurationProtector GetConfigurationProtector(string sectionName)
 {
     ConfigurationProtector protector = new ConfigurationProtector();
     protector.Load(ConfigurationContext, sectionName);
     return protector;
 }