找AppDomain中的其他.NET框架进程 [英] Get AppDomain for another .NET framework process

查看:139
本文介绍了找AppDomain中的其他.NET框架进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让的AppDomain 为我所有的机器上运行.NET框架的进程。如何做到这一点有什么建议?

I am trying to get the AppDomain for all the .NET Framework processes running on my machine. Any advice on how to do that?

推荐答案

我不是你正在努力做什么,但如果你想通过附加的Visual Studio到进程枚举所有正在运行的应用程序域,看到该链接完全清楚: <一href="http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/ebf549fa-661b-4ec5-88a4-96d033892e0c/"相对=nofollow>杰克Gudenkauf列举的AppDomain

Im not entirely clear on what you are trying to do, but if you want to enumerate all running AppDomains by attaching Visual Studio to a process, see this link: Jack Gudenkauf "Enumerating AppDomains"

在那同样,如果你想这样做,在运行时(不Visual Studio的),那么你可能需要在程序中包含有管理的调试器,这将允许你'附加'到另一个进程。 看看在托管调试的例子,这表明一个调试器,用C#编写。然后,它可以让你的目标应用程序中执行扩展名,如杰克Gudenkauf的文章做。 <一href="http://www.microsoft.com/downloads/en/details.aspx?familyid=38449a42-6b7a-4e28-80ce-c55645ab1310&displaylang=en"相对=nofollow> CLR托管调试器(MDBG)样品

In that same vein, if you want to do this AT RUNTIME (without Visual Studio) then you will probably need to include a managed debugger in your program which will allow you to 'attach' to another process. Take a look at the managed debugger example, this demonstrates a debugger, written in C#. It will then allow you to execute an 'extension' within the target application process, such as is done in Jack Gudenkauf's article. CLR Managed Debugger (mdbg) Sample

这篇关于找AppDomain中的其他.NET框架进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆