MyWordConverterConfig.cs

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Configuration;

 

namespace MyWordConverter.Configuration

{

    class MyWordConverterConfig : ConfigurationSection

    {

        [ConfigurationProperty("Settings", IsRequired = true)]
                                            

        public SettingsElement Settings

        {

            get
                                            

            {

                return (SettingsElement)this["Settings"];
                                            

            }

            set
                                            

            {

                this["Settings"] = value;
                                            

            }

        }

 

    }

    public class SettingsElement : ConfigurationElement

    {

        [ConfigurationProperty("pdfSuffix", IsRequired = true)]
                                            

        public String PdfSuffix

        {

            get
                                            

            {

                return (String)this["pdfSuffix"];
                                            

            }

            set
                                            

            {

                this["pdfSuffix"] = value;
                                            

            }

        }

    }

}