我爱Aspx >> Asp.Net >> 在指定应用程序域中执行代码超级入门级:) 哈哈~ 留个纪念。
//
// 在指定应用程序域中执行代码
//
//
//
using System;
using System.Collections.Generic;
using System.Text;
namespace DomainTest
{
class Program
{
private static string strKey = "Key1";
static void Main(string[] args)
{
AppDomain domaintest = AppDomain.CreateDomain("Domaintest");
string strVal = "Value1";
domaintest.SetData(strKey, strVal);
// 跨程序域调用委托
CrossAppDomainDelegate callback = delegate
{
// 取得当前程序域
AppDomain domain = AppDomain.CurrentDomain;
Console.WriteLine(string.Format("Value: {0} In {1}", domain.GetData(strKey), domain.FriendlyName));
};
// 在指定程序域中执行代码
domaintest.DoCallBack(callback);
Console.Read();
}
}
}
http://luoboqingcai.cnblogs.com/archive/2006/06/26/435596.html
Ҷƪл˵?
Asp.Net中NHiernate的Session的管..[08-01]
给datagrid的按钮列添加css[08-01]
.Net 2.0 原汁原味读取注册表[08-01]
自动清除微软Outlook窗体缓存[08-01]
浅谈金山表格2003的行、列操作[08-01]
修改硬盘模式 加快Win XP启动速度[08-01]
绿色版Firefox--RedFox试用[08-01]
Fireworks笔触与选区实现残破照片..[08-01]
ASP.NET 2.0站点地图搭建网站导航..[08-01]
ASP.NET2.0中配置文件的加密与解..[08-01]