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!

Environment.CommandLine

A string holding the command line for this process.

[Visual Basic]
Public Shared ReadOnly Property CommandLine As String
[C#]
public static string CommandLine {get;}
[C++]
public: __property static String* get_CommandLine();
[JScript]
public static function get CommandLine() : String;

Property Value

The Unicode string holding the command line string.

Remarks

On Windows NT/2000, the name of the executable file does not include the path.

On Windows 95/98, the name of the executable file includes the path. Also, long file names (non-8dot3 names) may be shortened to their 8dot3 representation.

On Windows CE, a NotSupportedException is thrown because Windows CE does not support command-line arguments.

See the code sample given in the GetCommandLineArgs topic.

See Also

Environment Class | Environment Members | System Namespace