config file and custom XML Tags

G

Guest

Dear all,

Let say that I have developped a funcionnal library that I distribute for use.
That library can be integrated in a project by referencing it and then use
it by calling function and setting properties. So far so good.

I would like that some function behaviour can be customized withing config
file through custom predifined XML tags.What is the way to be able to
configure some property of that libarry inside config file within custom XMl
tags and then be able to read them back.

In a similar way when configuing an asp pahe withinh HTML editor. You are
able to get intelisense content of particula library tags

thnaks for your help

reagrds
serge
 
G

Guest

You can add custom configration keys in your config file by using <add key=""
value="" /> elements and you can read it in code by using
System.configration.configrationsettings.appsettings("key"). If you want
intellisense for your config file .. you have to first create schema file for
that config file and then open config file in visual studio, go to properties
window and provide file path of that schema file in targetschema property.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,019
Latest member
RoxannaSta

Latest Threads

Top