All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
PHP,5.0中多态性的实现方案浅析_php资料_编程技术
ASP.NET,2.0中实现模板中的数据绑定_[Asp.Net教程]
实例简析SQL嵌套子查询_[SQL Server教程]
PHP对文本数据库的基本操作方法_php资料_编程技术
什么是面向对象编程
Apache伪静态html(URL,Rewrite)设置法_php资料_编程技术
PHP在XP下IIS和Apache2服务器上的安装_[PHP教程]
Php高手带路--问题汇总解答_[PHP教程]
gridview超出长度用..代替,提示显示详细信息_[Asp.Net教程]
SQLSERVER中,数据库同步的实现_[SQL Server教程]
Reading number is top 10 pictures
Discharge accidentally Actresses by the breast4
Sora aoi calligraphy show
Original author said, this is the Hengyang people
Valentine's day comes, send some cartoon
美洲杯宝贝的雨中风情1
Go to the national museum2
Female model behind the bitterness, often being overcharged5
NeedWallpaper13
美女浴室写真1
Fat bird to fly
Download software ranking
Boxer vs Yellow1
卡丁车单机版
Unix video tutorial13
Sora aoi - one of more PK
Tram sex maniac 2 (H) rar bag6
小黑猫大战两米大花蛇
Love the forty days
VeryCD电驴(EasyMule) V1.1.9 Build09081
电脑知识及技巧大合集
株洲本地在线棋牌游戏
delv published in(发表于) 2014/1/6 9:11:43 Edit(编辑)
在指定应用程序域中执行代码_[Asp.Net教程]

在指定应用程序域中执行代码_[Asp.Net教程]

在指定应用程序域中执行代码_[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();
}
}
}


来源:网络







添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.