NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

InstallContext.ParseCommandLine

Parses the command line arguments into a StringDictionary.

[Visual Basic]
Protected Shared Function ParseCommandLine( _
   ByVal args() As String _
) As StringDictionary
[C#]
protected static StringDictionary ParseCommandLine(
   string[] args
);
[C++]
protected: static StringDictionary* ParseCommandLine(
   String* args[]
);
[JScript]
protected static function ParseCommandLine(
   args : String[]
) : StringDictionary;

Parameters

args
An array containing the command-line arguments.

Return Value

A StringDictionary containing the parsed command-line arguments.

Remarks

This method parses the command line parameters that are entered when the installation executable is run. The parameters and their values are parsed into StringDictionary, a case-insensitive hashtable of parameter names and values of type string. Each array entry in args contains a parameter in one of the following formats: "/parametername= value", or "-parametername= value". The command-line parameter "/LogToConsole= true" would be parsed into the StringDictionary with the key = "logtoconsole" and the value = "true".

See Also

InstallContext Class | InstallContext Members | System.Configuration.Install Namespace | Parameters | IsParameterTrue