Software Programming

Kunuk Nykjaer

Custom Configuration Section Samples – CSharp

leave a comment »

I think creating custom configuration section for a web.config or app.config file can be cumbersome.

I have created code samples for various custom configuration.
You can use it for inspiration if you need to create a custom configuration section.

Sometimes I think it’s easier to read and run code samples rather than lengthy API documentation.

<?xml version="1.0" encoding="utf-8" ?>

        <section name="companySection" 
           type="CompanyApplication.Code.CompanySection, CompanyApplication" />
      <!-- type = "full namespace path, assembly name" -->  
            <company name="Google" code="googl"/>
            <company name="Apple" code="aapl"/>
            <company name="Microsoft" code="msft"/>

I recommend these articles if you want to read some guides about custom sections.


Written by kunuk Nykjaer

October 12, 2014 at 11:23 am

Posted in Csharp

Tagged with

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: