Nini Library API Reference -

ArgvConfigSource Class

Configuration class for loading command line arguments.

For a list of all members of this type, see ArgvConfigSource Members.


public class ArgvConfigSource : ConfigSourceBase

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.


Provides a method to parse command line parameters and collect them into a ConfigCollection. The arguments allowed are the Windows style ("/key:value", "-key") or Unix style ("--key=value" and "-key value").


This is an example that sends in Windows arguments:

MyApp.exe -debug /file:log.txt
This is an example that sends in Unix arguments:
MyApp.exe -D --file log.txt --debug=yes


Namespace: Nini.Config

Assembly: Nini (in Nini.dll)

See Also

ArgvConfigSource Members | Nini.Config Namespace