Frequently Asked Questions

Questions

  1. How do I get started using Nini?
  2. Can I use Nini with ASP.NET?
  3. How can I return a list of values from a configuration file?
  4. Where are the VB.NET examples?
  5. How do I access Samba, MySQL, or Python INI files?
  6. Can I distribute Nini with my commercial application?

Answers

  1. What is Nini?
    Read the About section, take a look at the manual, then download Nini. You should be a pro in no time.)
  2. Can I use Nini with ASP.NET?
    Absolutely. Use the DotNetConfigSource class by either pointing to the web.config file or by passing inthe sections.)
  3. How can I return a list of values from a configuration file?
    Yes, there is an example in the manual that demonstrates how to do this.)
  4. Where are the VB.NET examples?
    There are examples in VB.NET in the Examples directory of the Nini project.
  5. How do I access Samba, MySQL, or Python style INI files?
    Here's the example code to load a Samba style document:
    using Nini.Config;
    using Nini.Ini;

    IniDocument doc = new IniDocument ("smb.conf", 
                   IniFileType.SambaStyle);
    IConfigSource source = new IniConfigSource (doc);
  1. Can I distribute Nini with my commercial application?
    Absolutely. Read the license for more information.