当我使用 VSTS 调试器查看类实例的属性时Process
,许多属性都标有InvalidOperationException
. 为什么?我做错什么了吗?
我正在使用 VSTS 2008 + C# + .Net 2.0 来开发控制台应用程序。
这是我的代码:
System.Diagnostics.Process myProcess = new System.Diagnostics.Process();
myProcess.StartInfo.FileName = "IExplore.exe";
myProcess.StartInfo.Arguments = @"www.google.com";
myProcess.StartInfo.Verb = "runas";
myProcess.Start();
以及调试器的截图: