Hosting the Common Language Runtime

本文介绍如何为.NET Framework应用程序编写运行时主机,包括加载运行时到进程、从非托管代码过渡到托管代码、确定应用域边界、创建配置应用域、加载执行用户代码、设置应用域级别的安全策略等内容。
Hosting the Common Language Runtime

The common language runtime supports many different types of applications. For example, the runtime can run Web server applications and console applications, as well as applications with a traditional rich Windows user interface.

Each type of .NET Framework application requires a piece of code called a runtime host to start. The runtime host loads the runtime into a process, creates the application domains within the process, and loads and executes user code within those application domains. This section explains how to write a runtime host that performs several fundamental tasks.

In This Section
Hosting Overview
Provides an overview of runtime hosting.
Loading the Runtime into a Process
Describes how to load the runtime into a process.
Transitioning to Managed Hosting Code
Describes how to make a transition from unmanaged to managed code.
Determining Application Domain Boundaries
Describes how to determine where to set boundaries for a new application domain.
Creating and Configuring Application Domains
Describes how to create and configure application domains in which to run user code.
Loading and Executing User Code
Describes how to load and execute user code.
Setting Application Domain-Level Security Policy
Describes how to set an application domain-level security policy.
Setting Role-Based Security Policy and Principals
Describes how to set a role-based security policy.
Unloading Domains and Shutting Down a Process
Describes how to unload application domains and shut down a process.
Related Sections
Runtime Hosts
Describes the code that an application needs in order to start.
Application Domains
Describes the constructs that hosts use to isolate code running within a process.
Side-by-Side Execution
Describes running multiple versions of an application, a component or the runtime.

转载于:https://www.cnblogs.com/MayGarden/archive/2010/01/11/1643925.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值