简体   繁体   English

是否可以使用委托在另一个Application域中执行全局方法?

[英]Is it possible to use delegates to execute global methods in another Application domain ?

I am trying to use delegates to execute methods in another domain, but i can't achieve it , so i want to make sure if it's really possible to do what i am trying to do. 我正在尝试使用委托来执行另一个域中的方法,但是我无法实现它,因此我想确定是否真的有可能做我想做的事情。 Is it possible to use delegates to execute global methods in another Application domain ? 是否可以使用委托在另一个Application域中执行全局方法?

不,这是不可能的,公共语言运行时不支持全局方法的序列化,因此不能使用委托在其他应用程序域中执行全局方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在另一个应用程序域中执行代码的 C# 代码? - C# code to execute code in another application domain? 使用 JWT 令牌身份验证访问在 VB.Net 2 webforms 和 MySQL 中开发的另一个域/Web 应用程序的可能方法 - Possible ways to use JWT token authentication to access another domain/web application developed in VB.Net 2 webforms and MySQL 尽管存在其他限制,为什么可以将部分方法分配给委托? - Why it is possible to assign partial methods to delegates in spite of other constraints? 有没有办法直接使用C#方法作为代理? - Is there any way to use C# methods directly as delegates? 如何使用委托调用样式方法? - How can I use delegates to call styling methods? 如何使用委托在线程包装器类中传递方法? - How can I use delegates to pass methods in a thread wrapper class? 如果使用委托,我需要那些方法是静态的吗? - If I use Delegates, I need those methods to be static? 将代表传递给另一个AppDomain时,是否可以将代表作为代理进行整理? - Is it possible to have delegates marshalled as proxies when they are passed across to another AppDomain? 接口上的扩展方法; 代表 - Extension methods on an interface; delegates 方法是否转换为委托? - Do methods are transformed into delegates?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM