加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c# – Process.Start()什么时候可以返回null?

发布时间:2020-12-15 06:56:03 所属栏目:百科 来源:网络整理
导读:我有一些代码通过使用 Process.Start(ProcessStartInfo)启动一个进程.我从文档中看到,如果现有进程被重用,此方法可以返回null. [Returns a] new Process component that is associated with the process resource,or null if no process resource is started
我有一些代码通过使用 Process.Start(ProcessStartInfo)启动一个进程.我从文档中看到,如果现有进程被重用,此方法可以返回null.

[Returns a] new Process component that is associated with the process
resource,or null if no process resource is started (for example,
if an existing process is reused).

对现有流程进行再利用和在何种情况下会发生什么意味着什么?

解决方法

如果您调用传递文件(而不是EXE),并且该文件配置为使用DDE启动,则会发生这种情况.

例如,这是Office应用程序在现有实例中打开文件的方式.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读