当前位置: 首页 > 图文教程 > 网络编程 > ASP.NET > System.Runtime.Remoting.Activation.ActivationServices.CreateInstance()

ASP.NET
ACCESS数据库访问组件(三)
ACCESS数据库访问组件(四)
在ASP.NET访问Excel文件
使用正则表达式解析的初步体会(固定格式网页解析)
一段找出URL的代码(C#)
C#中的转意字符序列
创建表,创建行,创建列(VB.NET)
刀兄写的IIS管理类(C#)
索引服务调用代码(C#)
VB.NET里奇怪的数组赋值现象
C#运算符的优先顺序
[初学VB.NET]如何防止重复打开MDI子窗体
第二版出错的地方,大家看看第三版我的翻译对么?
VB的API编程精粹
表格架构基本框架DEMO码
用C#实现在客户区拖动窗体(转自MSDN)
在ASP.NET中利用GDI+ 设计Chart控件
关于JAXP,DOM,SAX,JDOM,DOM4J的一些想法
Nucleus.MockAOP.Net:OpenSource .Net AOP FrameWork
VB中打印ACCESS报表

ASP.NET 中的 System.Runtime.Remoting.Activation.ActivationServices.CreateInstance()


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 128 ::
收藏到网摘: n/a

internal static MarshalByRefObject CreateInstance(Type serverType){ RemotingProxy proxy1; MarshalByRefObject obj1 = null; ConstructorCallMessage message1 = null; bool flag1 = ActivationServices.IsCurrentContextOK(serverType, (object[]) null, ref message1); if (flag1 && !serverType.IsContextful) { return RemotingServices.AllocateUninitializedObject(serverType); } obj1 = (MarshalByRefObject) ActivationServices.ConnectIfNecessary(message1); if (obj1 == null) { proxy1 = new RemotingProxy(serverType); obj1 = (MarshalByRefObject) proxy1.GetTransparentProxy(); } else { proxy1 = (RemotingProxy) RemotingServices.GetRealProxy(obj1); } proxy1.ConstructorMessage = message1; if (!flag1) { ContextLevelActivator activator1 = new ContextLevelActivator(); activator1.NextActivator = message1.Activator; message1.Activator = activator1; return obj1; } message1.ActivateInContext = true; return obj1;}