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?<br/> 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?<br/> 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?<br/> Yes, there is an example in the manual that demonstrates how to do this.)
  4. Where are the VB.NET examples?<br/> 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? <br/> Here's the example code to load a Samba style document:<br/>

    using Nini.Config;
    using Nini.Ini;

    IniDocument doc = new IniDocument ("smb.conf", IniFileType.SambaStyle); IConfigSource source = new IniConfigSource (doc);

  6. Can I distribute Nini with my commercial application?<br/> Absolutely. Read the license for more information.