进一步来说AppDomain domain = AppDomain.CreateDomain("New domain name");//Do other things to the domain like set the security policystring pathToDll = @"C:\myDll.dll"; //Full path to dll you want to loadType t = typeof(TypeIWantToLoad);TypeIWantToLoad myObject = (TypeIWantToLoad)domain.CreateInstanceFromAndUnwrap(pathToDll, t.FullName);如果一切正常(没有引发异常),您现在将TypeIWantToLoad实例加载到新域中。您拥有的实例实际上是一个代理(因为实际对象位于新域中),但是您可以像使用普通对象一样使用它。注意:据我所知,TypeIWantToLoad必须从MarshalByRefObject继承。