Why go to all this grief???  Save you configuration information to the
registry using the generic SaveSetting routine.

Jeff

On Sun, Oct 31, 2010 at 9:00 AM, Larry <[email protected]> wrote:

> Really??? Nobody out there has done something similar to my example
> using the Custom Configuration Section??  Come on people...I know
> there are some VERY smart folks out there... Someone must have done
> this at one time.  I really need someone's help with this.
>
> Thanks!
>
> Larry
>
>
>
> On Oct 27, 9:00 am, Larry <[email protected]> wrote:
> > Hi,
> >
> > I've written a windows service in VS 2008 (VB) that used the
> > appSettings for some configurations.  Recently I have a need for more
> > complex configurations in this program.  I initially thought that I
> > would just create an XML file with the structure that I needed and
> > write XML parsing to get my config info, but then I read about .NET
> > 2's Custom Configuration Section.  Since I'm not a big fan of writing
> > XML parsing, I thought that I could do this with the new functionality
> > of .NET.  However, I'm not able to find examples of creating the
> > Custom Configuration Section class for a structure with a collection
> > within a collection.  I've really been trying to figure it out myself
> > from more simple examples of singular collection-based configs, but am
> > just not quite getting it.  I wonder if anyone out there can direct me
> > to some more complex examples, or can tell me what I need to do to
> > create this class for my structure.  Below is an example of what I
> > would need my config to look like.
> >
> > <ClinicDefs>
> >    <Clinic ID="AAA" OEMeaning="NNN" CDBID="YYY" CTable="ZZZ">
> >        <LocInfo LocID="12345" />
> >        <LocInfo LocID="99999999" />
> >   </Clinic>
> >   <Clinic ID="BBB" OEMeaning="GGGG" CDBID="XXXX" CTable="SSSS">
> >        <LocInfo LocID="5555" />
> >        <LocInfo LocID="111" ApptTypeCd="777777" />
> >   </Clinic>
> > </ClinicDefs>
> >
> > Any help or direction would be appreciated!   Although I can usually
> > mentally convert C# to VB, examples in VB would be helpful.
> >
> > Thanks,
> >
> > Larry

Reply via email to