(1)System.Environment.CommandLine; //获得字符串
(2)System.Environment.GetCommandLineArgs();//获得字符串数组
本文介绍了两种获取.NET程序命令行参数的方法:使用System.Environment.CommandLine获取整个命令行字符串,以及使用System.Environment.GetCommandLineArgs()获取参数的字符串数组形式。
(1)System.Environment.CommandLine; //获得字符串
(2)System.Environment.GetCommandLineArgs();//获得字符串数组
转载于:https://www.cnblogs.com/DaiMaDi/archive/2012/03/04/2379560.html
2240

被折叠的 条评论
为什么被折叠?