如何从AppDomain ID获取Appdomain对象 [英] How to get the Appdomain Object from AppDomain ID

查看:87
本文介绍了如何从AppDomain ID获取Appdomain对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个AppDomain ID,如何获取AppDomain的实例

对象?

请咨询。

提前致谢。

John

I have a AppDomain ID, how do I get the instance of the AppDomain
Object?
Please advice.
Thanks in advance.
John

推荐答案

John写道:
John wrote:

我有一个AppDomain ID,如何获取AppDomain的实例

对象?
I have a AppDomain ID, how do I get the instance of the AppDomain
Object?



可能有一种更简单的方法,但它在我看来是唯一的方式来实现这一点就是枚举应用程序域名这个过程,检查他们的

id。似乎没有一种不受管理的方式来枚举应用领域

- 请参阅


< http://groups.google.com/group /microsoft.public.dotnet.framework.clr/browse_frm/thread/dba9c445ad8d5c3/9df14bf0af393c28?lnk=st&q=enumerate+appdomain+grou p%3Amicrosoft.public.dotnet。*& rnum = 5#9df14bf0af393 c28>


用于使用非托管调试接口的一些代码。


-


..NET 2.0 for Delphi Programmers www.midnightbeach.com/.net

德尔福技能使.NET易于学习很棒的评论&良好的销售。

There might be a simpler way, but it looks to me like the only way to
do this is to enumerate the app domains in the process, checking their
id. There doesn''t seem to be an unmanaged way to enumerate app domains
- see

<http://groups.google.com/group/microsoft.public.dotnet.framework.clr/browse_frm/thread/dba9c445ad8d5c3/9df14bf0af393c28?lnk=st&q=enumerate+appdomain+grou p%3Amicrosoft.public.dotnet.*&rnum=5#9df14bf0af393 c28>

for some code that uses the unmanaged, debug interface.

--

..NET 2.0 for Delphi Programmers www.midnightbeach.com/.net
Delphi skills make .NET easy to learn Great reviews & good sales.


Thx,但EnumDomains只能在当前的

流程中启动AppDomain,其他流程中的AppDomain如何? />
Jon Shemitz写道:
Thx, but the EnumDomains only enumates the AppDomain in the current
process, how about the AppDomain in other processes?
Jon Shemitz wrote:

John写道:
John wrote:

我有一个AppDomain ID ,我如何获得AppDomain的实例

对象?
I have a AppDomain ID, how do I get the instance of the AppDomain
Object?



可能有一种更简单的方法,但它在我看来是唯一的方式来实现这一点就是枚举应用程序域名这个过程,检查他们的

id。似乎没有一种不受管理的方式来枚举应用领域

- 请参阅


< http://groups.google.com/group /microsoft.public.dotnet.framework.clr/browse_frm/thread/dba9c445ad8d5c3/9df14bf0af393c28?lnk=st&q=enumerate+appdomain+grou p%3Amicrosoft.public.dotnet。*& rnum = 5#9df14bf0af393 c28>


用于使用非托管调试接口的一些代码。


-


.NET 2.0 Delphi程序员 www.midnightbeach.com/.net

Delphi技能使.NET易学易用。良好的销售。


There might be a simpler way, but it looks to me like the only way to
do this is to enumerate the app domains in the process, checking their
id. There doesn''t seem to be an unmanaged way to enumerate app domains
- see

<http://groups.google.com/group/microsoft.public.dotnet.framework.clr/browse_frm/thread/dba9c445ad8d5c3/9df14bf0af393c28?lnk=st&q=enumerate+appdomain+grou p%3Amicrosoft.public.dotnet.*&rnum=5#9df14bf0af393 c28>

for some code that uses the unmanaged, debug interface.

--

.NET 2.0 for Delphi Programmers www.midnightbeach.com/.net
Delphi skills make .NET easy to learn Great reviews & good sales.


我怀疑这是以现成的方式曝光的。


你在尝试什么要做什么?

-

- Nicholas Paldino [.NET / C#MVP]

- mv*@spam.guard.caspershouse.com


" John" < jo ***** @ yahoo.comWrote in message

news:11 ********************* @ d34g2000cwd.googlegro ups.com ...
I doubt that this is exposed in a readily available way.

What is it that you are trying to do?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"John" <jo*****@yahoo.comwrote in message
news:11*********************@d34g2000cwd.googlegro ups.com...

Thx,但EnumDomains仅在当前的

流程中启用AppDomain,其他AppDomain如何流程?

Jon Shemitz写道:
Thx, but the EnumDomains only enumates the AppDomain in the current
process, how about the AppDomain in other processes?
Jon Shemitz wrote:

> John写道:
>John wrote:

我有一个AppDomain ID,如何获取AppDomain的实例

对象?
I have a AppDomain ID, how do I get the instance of the AppDomain
Object?


可能有一种更简单的方法,但在我看来,这样做的唯一方法就是在流程中枚举应用域,检查他们的
ID。似乎没有一种不受管理的方式来枚举应用领域
- 请参阅

< http://groups.google.com/group/microsoft.public.dotnet.framework某人的.clr / browse_frm / thread / dba9c445ad8d5c3 / 9df14bf0af393c28?lnk = st& q = enumerate + appdomain + grou p%3Amicrosoft.public.dotnet。*& rnum = 5#9df14bf0af393 c28>

使用非托管调试接口的代码。


用于Delphi程序员的.NET 2.0 www.midnightbeach.com/.net
Delphi技能使.NET易学易用。良好的销售。


There might be a simpler way, but it looks to me like the only way to
do this is to enumerate the app domains in the process, checking their
id. There doesn''t seem to be an unmanaged way to enumerate app domains
- see

<http://groups.google.com/group/microsoft.public.dotnet.framework.clr/browse_frm/thread/dba9c445ad8d5c3/9df14bf0af393c28?lnk=st&q=enumerate+appdomain+grou p%3Amicrosoft.public.dotnet.*&rnum=5#9df14bf0af393 c28>

for some code that uses the unmanaged, debug interface.

--

.NET 2.0 for Delphi Programmers www.midnightbeach.com/.net
Delphi skills make .NET easy to learn Great reviews & good sales.



这篇关于如何从AppDomain ID获取Appdomain对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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