so there is no way to make this with the usual config stuff.... for the
other i have already my own xml-config reader, for complexer settings, but
okay, thanks for that hint
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us>
schrieb im Newsbeitrag news:%(E-Mail Removed)...
> Hi Patrick,
>
> I would suggest you put those config settings in another XML file, so you
> can parse it and create a collection ( or maybe a Hashtable ) to contain
> them.
> You can create a class Config with a static constructor ( to be sure it
will
> be called before you use this class ) from where you load/parse the
config.
>
> Then you can have properties ( I suggest static too ) that you have
access
> to the settings.
>
>
> Hope this help,
>
> --
> Ignacio Machin,
> ignacio.machin AT dot.state.fl.us
> Florida Department Of Transportation
>
> "Patrick" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi
> >
> > I want tu use an app.config like the example below. The problem is, that
i
> > don't know how many Action-Tags there will be, because this can be
changed
> > by the user. When using
> >
>
System.Configuration.ConfigurationSettings.GetConfig("IncomingActions/action
> > ") I can access the config file, but get only the values of the Last
> > Action-Tag.
> >
> >
> > Does someone know, how to implement that using the app.config file?
> >
> > Thanks
> >
> > Patrick
> >
> >
> >
> >
> >
> > <configSections>
> >
> > <sectionGroup name="IncomingActions">
> >
> > <section name="action"
> > type="System.Configuration.SingleTagSectionHandler" />
> >
> > </sectionGroup>
> >
> > </configSections>
> >
> > <IncomingActions>
> >
> > <action From="Value11" Message="value two1" Command="third value1"
> > Confirm="y" />
> >
> > <action From="Value21" Message="value two2" Command="third value2"
> > Confirm="y" />
> >
> > <action From="Value31" Message="value two3" Command="third value3"
> > Confirm="y" />
> >
> > <action From="Value41" Message="value two4" Command="third value4"
> > Confirm="y" />
> >
> > </IncomingActions>
> >
> >
>
>
|