S
Steven Cheng[MSFT]
Hi J,
As for creating custom configuration section for .NET framework application
configuration file, you have two means according to the .net framework 2.0
configuration section handler interface:
1. Use the existing configuration classes to build your custom
comfigurationSection in a declarative way.
#How to: Create Custom Configuration Sections Using ConfigurationSection
http://msdn2.microsoft.com/en-us/library/2tw134k3.aspx
http://www.codeproject.com/dotnet/customconfigsectionsNet2.asp
2. Using built-in classes may have few customzation ability such as control
the exact element name or collection section's child elements. thus, you
can also build a custom section through complete programmatic way by using
the IConfigurationSectionHandler interface:
#How to: Create Custom Configuration Sections Using
IConfigurationSectionHandler
http://msdn2.microsoft.com/en-us/library/ms228056.aspx
in this case, you will write all the code that do the xml reading/writing
for your custom section
Here is a list of all those .NET 2.0 configuration section classes you can
use:
#Classes Used to Create Custom Section Handlers
http://msdn2.microsoft.com/en-us/library/ms228062(vs.80).aspx
Hope this helps.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
As for creating custom configuration section for .NET framework application
configuration file, you have two means according to the .net framework 2.0
configuration section handler interface:
1. Use the existing configuration classes to build your custom
comfigurationSection in a declarative way.
#How to: Create Custom Configuration Sections Using ConfigurationSection
http://msdn2.microsoft.com/en-us/library/2tw134k3.aspx
http://www.codeproject.com/dotnet/customconfigsectionsNet2.asp
2. Using built-in classes may have few customzation ability such as control
the exact element name or collection section's child elements. thus, you
can also build a custom section through complete programmatic way by using
the IConfigurationSectionHandler interface:
#How to: Create Custom Configuration Sections Using
IConfigurationSectionHandler
http://msdn2.microsoft.com/en-us/library/ms228056.aspx
in this case, you will write all the code that do the xml reading/writing
for your custom section
Here is a list of all those .NET 2.0 configuration section classes you can
use:
#Classes Used to Create Custom Section Handlers
http://msdn2.microsoft.com/en-us/library/ms228062(vs.80).aspx
Hope this helps.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.