I\'ve created a custom configuration section using XSD. In order to parse the config file that follows this new schema, I load the resource (my .xsd file) with this:
I have just rolled a custom configuration section, created an accompanying schema document for Intellisense and added it to the Web.config\'s Schemas property as per Michael Stum\'s answer to another
I\'m migrating a piece of functionality from my App_Code di开发者_如何学JAVArectory to a separate project that\'s going to build a class library to be referenced by my web app.One of my classes in the
I am trying to create a virtual directory and set it\'s permissions using IIS7 and C#. Here is a sample of my code:
I\'ve got aConfiguration object that I can easily read and write settings from and call Save(ConfigurationSaveMode.Minimal, true) on and that typically works just fine.
I have a console application that is trying to load a CustomConfigurationSection from a web.config file.
So this a new one for me. I\'m trying to define a ConfigurationSection class in my class library that pulls from App.Config in my WinForms app. I\'ve never done this before but from following example
As in topic.. I\'ve found something like this in one application. In main C application we have declaration:
I have a class containing the following ConfigurationSection: namespace DummyConsole { class TestingComponentSettings: ConfigurationSection {
I have the following code var section = new CustomConfigurationSection(); section.SectionInformation.Type = \"System.Configu开发者_StackOverflow中文版ration.NameValueFileSectionHandler\";