您的位置:首页 > 其它

Environment.GetCommandLineArgs();

2009-12-30 18:54 429 查看
在console app中,并不是一定非要Main中获取command args,

也可以通过 Environment.GetCommandLineArgs();在其他方法中获取command args.

public static void Main(string [] args)

{

......

Test();

....

}

private Test()

{

......  

Environment.GetCommandLineArgs();

......

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: