.NETFramework:HttpRuntime
| ylbtech-System.Web.HttpRuntime.cs |
| 1.返回顶部 |
#region 程序集 System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Web.dll
#endregion using System.Security;
using System.Web.Caching; namespace System.Web
{
//
// 摘要:
// 提供了一组的当前应用程序的 ASP.NET 运行时服务。
public sealed class HttpRuntime
{
//
// 摘要:
// 初始化 System.Web.HttpRuntime 类的新实例。
public HttpRuntime(); //
// 摘要:
// 获取当前应用程序的 /bin 目录的物理路径。
//
// 返回结果:
// 当前应用程序的 /bin 目录的路径。
public static string BinDirectory { get; }
//
// 摘要:
// 获取应用程序域的域标识其中 System.Web.HttpRuntime 实例是否存在。
//
// 返回结果:
// 唯一的应用程序域标识符。
public static string AppDomainId { get; }
//
// 摘要:
// 获取包含当前的应用程序域中托管的应用程序的目录的虚拟路径。
//
// 返回结果:
// 包含在当前应用程序域中托管的应用程序目录的虚拟路径。
public static string AppDomainAppVirtualPath { get; }
//
// 摘要:
// 获取当前应用程序域中托管的应用程序的应用程序目录的物理驱动器路径。
//
// 返回结果:
// 在当前应用程序域中托管的应用程序的应用程序目录的物理驱动器路径。
public static string AppDomainAppPath { get; }
//
// 摘要:
// 获取应用程序域的应用程序标识其中 System.Web.HttpRuntime 存在。
//
// 返回结果:
// 应用程序域的应用程序标识其中 System.Web.HttpRuntime 存在。
public static string AppDomainAppId { get; }
//
// 摘要:
// 获取 ASP.NET 存储当前的应用程序的临时文件 (生成的源和已编译的程序集等) 的目录的物理路径。
//
// 返回结果:
// 应用程序的临时文件存储目录的物理路径。
public static string CodegenDir { get; }
//
// 摘要:
// 获取当前应用程序的 Machine.config 文件所在的目录的物理路径。
//
// 返回结果:
// 当前应用程序 Machine.config 文件的物理路径。
public static string MachineConfigurationDirectory { get; }
//
// 摘要:
// 获取公共语言运行时可执行文件的安装位置的目录的物理路径。
//
// 返回结果:
// 公共语言运行时可执行文件物理路径。
public static string ClrInstallDirectory { get; }
//
// 摘要:
// 获取一个值,该值指示是否将应用程序映射到一个通用命名约定 (UNC) 共享。
//
// 返回结果:
// true 如果应用程序映射到 UNC 共享位置;否则为 false。
public static bool IsOnUNCShare { get; }
//
// 摘要:
// 获取 ASP.NET 客户端脚本文件的文件夹路径。
//
// 返回结果:
// ASP.NET 客户端脚本文件的文件夹路径。
//
// 异常:
// T:System.Web.HttpException:
// 未安装 ASP.NET。
public static string AspClientScriptPhysicalPath { get; }
//
// 摘要:
// 获取安装的 ASP.NET 可执行文件的目录的物理路径。
//
// 返回结果:
// ASP.NET 可执行文件的物理路径。
//
// 异常:
// T:System.Web.HttpException:
// 在此计算机上未安装 ASP.NET。
public static string AspInstallDirectory { get; }
//
// 摘要:
// 获取 System.Web.Caching.Cache 当前应用程序。
//
// 返回结果:
// 当前的 System.Web.Caching.Cache。
//
// 异常:
// T:System.Web.HttpException:
// 未安装 ASP.NET。
public static Cache Cache { get; }
//
// 摘要:
// 获取一个值,该值指示当前应用程序是否正在运行的集成管道模式下的 IIS 7.0。
//
// 返回结果:
// true 如果应用程序运行在集成管道模式下;否则为 false。
public static bool UsingIntegratedPipeline { get; }
//
// 摘要:
// 获取托管此应用程序的 IIS 版本。
//
// 返回结果:
// 此应用程序的宿主 IIS 的版本或 null 如果不由 IIS 托管此应用程序。
public static Version IISVersion { get; }
//
// 摘要:
// 获取 ASP.NET 客户端脚本文件的虚拟路径。
//
// 返回结果:
// 有关 ASP.NET 客户端脚本文件的虚拟路径。
public static string AspClientScriptVirtualPath { get; }
//
// 摘要:
// 获取当前 web 应用程序所针对的.NET framework 的版本。
//
// 返回结果:
// 当前 web 应用程序的目标.NET Framework 的版本。
public static Version TargetFramework { get; } //
// 摘要:
// 关闭 System.Web.HttpRuntime 实例。
public static void Close();
//
// 摘要:
// 返回与代码组关联的权限集。
//
// 返回结果:
// 一个 System.Security.NamedPermissionSet 对象,其中包含的名称和说明的权限,或 null 如果不存在。
public static NamedPermissionSet GetNamedPermissionSet();
//
// 摘要:
// 驱动器所有 ASP.NET Web 处理执行。
//
// 参数:
// wr:
// System.Web.HttpWorkerRequest 当前应用程序。
//
// 异常:
// T:System.ArgumentNullException:
// wr 参数为 null。
//
// T:System.PlatformNotSupportedException:
// 在集成模式下在 IIS 7 下运行 Web 应用程序。
public static void ProcessRequest(HttpWorkerRequest wr);
//
// 摘要:
// 终止当前应用程序。 应用程序将为其接收到的请求在下次重新启动。
public static void UnloadAppDomain();
}
}
| 2.返回顶部 |
| 3.返回顶部 |
| 4.返回顶部 |
| 5.返回顶部 |
| 6.返回顶部 |
![]() |
作者:ylbtech 出处:http://ylbtech.cnblogs.com/ 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 |
.NETFramework:HttpRuntime的更多相关文章
- .NETFramework:Cache
ylbtech-.NETFramework:Cache 1.返回顶部 1. #region 程序集 System.Web, Version=4.0.0.0, Culture=neutral, Publ ...
- MVC之前的那点事儿系列(3):HttpRuntime详解分析(下)
文章内容 话说,经过各种各样复杂的我们不知道的内部处理,非托管代码正式开始调用ISPAIRuntime的ProcessRequest方法了(ISPAIRuntime继承了IISPAIRuntime接口 ...
- MVC之前的那点事儿系列(2):HttpRuntime详解分析(上)
文章内容 从上章文章都知道,asp.net是运行在HttpRuntime里的,但是从CLR如何进入HttpRuntime的,可能大家都不太清晰.本章节就是通过深入分析.Net4的源码来展示其中的重要步 ...
- .NETFramework:DateTimeOffset
ylbtech-.NETFramework:DateTimeOffset 表示一个时间点,通常相对于协调世界时(UTC)的日期和时间来表示. 1.程序集 mscorlib, Version=4.0.0 ...
- .NETFramework:Random
ylbtech-.NETFramework:Random 1.程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c ...
- .NETFramework:ConfigurationManager
ylbtech-.NETFramework:ConfigurationManager 1.程序集 System.Configuration, Version=4.0.0.0, Culture=neut ...
- .NETFramework:StringBuilder
ylbtech-.NETFramework:StringBuilder 1.程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken ...
- .NETFramework:WebClient
ylbtech-.NETFramework:WebClient 1.程序集 System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5 ...
- .NETFramework:Timers
ylbtech-.NETFramework:Timers 1.返回顶部 1. #region 程序集 System, Version=4.0.0.0, Culture=neutral, PublicK ...
随机推荐
- Effective Java P2 Creating and Destroying Objects
This chapter concerns creating and destorying objects : when and how to create them, when and how to ...
- 打印报表以显示具有给定责任的用户-FNDSCRUR责任用户
select --&p_hint distinct user_name, decode ( greatest (u.sta ...
- Go -- go语言指针
package main import "fmt" type Test struct { Name string } func change2(t *Test) { t.Name ...
- influxDB的安装和简单使用
单机的influxdb免费,集群的是收费的 1.安装,参考官方文档 https://portal.influxdata.com/downloads RedHat & CentOS: wget ...
- 计算机视觉人脸相关开源项目总结:face_recognition
计算机视觉人脸相关开源项目总结 https://github.com/ageitgey/face_recognition 深度学习人脸关键点检测方法----综述
- [Unit Testing] Fundamentals of Testing in Javascript
In this lesson, we’ll get the most fundamental understanding of what an automated test is in JavaScr ...
- 从实例看hibernate的主键生成策略
学习了hibernate会发现.hibernate中有实体类.实体类的映射文件.可是我们怎么样才干知道实体类的主键是如何的生成方式呢?hibernate提供的主键生成策略帮我们完美地解答了这个疑问.以 ...
- react jsx 数组变量的写法
1.通过 map 方法 var students = ["张三然","李慧思","赵思然","孙力气","王萌 ...
- POJ训练计划1035_Spell checker(串处理/暴力)
Spell checker Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 18418 Accepted: 6759 De ...
- 【Mongodb教程 第十九课 】PHP与MONGODB的条件查询
与普通的关系型数据库类似,在对数据的删.改.查的时候,会用到查询条件,如mysql中的 where… 而MongoDB中,经过php来做的所有的操作指令都是用array来包裹的: MongoColle ...
