第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

HttpRuntime應(yīng)用程序的運(yùn)行時(shí)

標(biāo)簽:
前端工具

System.Web.HttpRuntime类是整个Asp.net服务器处理的入口。

这个类提供了一系列的静态属性,反映web应用程序域的设置信息,而且每个web应用程序域中存在一个System.Web.Runtime类。

复制代码

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;namespace HttpRuntimeDemo{    public partial class _default : System.Web.UI.Page    {        protected void Page_Load(object sender, EventArgs e)        {            StringBuilder sb = new StringBuilder();            //应用程序域id            sb.AppendFormat("AppDomainAppId:{0}<br/>", HttpRuntime.AppDomainAppId);            //web应用程序所在文件目录            sb.AppendFormat("AppDomainAppPath:{0}<br/>", HttpRuntime.AppDomainAppPath);            //web应用程序的虚拟目录            sb.AppendFormat("AppDomainAppVirtualPath:{0}<br/>", HttpRuntime.AppDomainAppVirtualPath);            //客户端脚本在服务器上的文件目录            sb.AppendFormat("AspClientScriptPhysicalPath:{0}<br/>", HttpRuntime.AspClientScriptPhysicalPath);            //客户端脚本在服务器上的虚拟目录            sb.AppendFormat("AspClientScriptPhysicalPath:{0}<br/>", HttpRuntime.AspClientScriptVirtualPath);            //asp.net安装目录            sb.AppendFormat("AspInstallDirectory:{0}<br/>", HttpRuntime.AspInstallDirectory);            //bin目录            sb.AppendFormat("BinDirectory:{0}<br/>", HttpRuntime.BinDirectory);            //clr安装目录            sb.AppendFormat("ClrInstallDirectory:{0}<br/>", HttpRuntime.ClrInstallDirectory);            //生成代码的目录            sb.AppendFormat("CodegenDir:{0}<br/>", HttpRuntime.CodegenDir);            //iss版本            sb.AppendFormat("IISVersion:{0}<br/>", HttpRuntime.IISVersion.MajorRevision.ToString());            //本机配置文件所在的目录            sb.AppendFormat("MachineConfigurationDirectory:{0}<br/>", HttpRuntime.MachineConfigurationDirectory);            //是否使用iis7集成模式            sb.AppendFormat("UsingIntegratedPipeline:{0}<br/>", HttpRuntime.UsingIntegratedPipeline.ToString());            // Summary:            //     Gets a value that indicates whether the application is mapped to a universal            //     naming convention (UNC) share.            sb.AppendFormat("IsOnUNCShare:{0}<br/>", HttpRuntime.IsOnUNCShare.ToString());            Response.Write(sb.ToString());                    }    }}

复制代码

上面列出了HttpRuntime主要的几个静态属性,输出结果为

而HttpRuntime的静态方法ProcessRequest将帮助我们处理Http请求。

复制代码

        //        // Summary:        //     Drives all ASP.NET Web processing execution.        //        // Parameters:        //   wr:        //     An System.Web.HttpWorkerRequest for the current application.        //        // Exceptions:        //   System.ArgumentNullException:        //     The wr parameter is null.        //        //   System.PlatformNotSupportedException:        //     The Web application is running under IIS 7 in Integrated mode.        public static void ProcessRequest(HttpWorkerRequest wr);

复制代码

點(diǎn)擊查看更多內(nèi)容
TA 點(diǎn)贊

若覺(jué)得本文不錯(cuò),就分享一下吧!

評(píng)論

作者其他優(yōu)質(zhì)文章

正在加載中
移動(dòng)開(kāi)發(fā)工程師
手記
粉絲
39
獲贊與收藏
245

關(guān)注作者,訂閱最新文章

閱讀免費(fèi)教程

  • 推薦
  • 評(píng)論
  • 收藏
  • 共同學(xué)習(xí),寫下你的評(píng)論
感謝您的支持,我會(huì)繼續(xù)努力的~
掃碼打賞,你說(shuō)多少就多少
贊賞金額會(huì)直接到老師賬戶
支付方式
打開(kāi)微信掃一掃,即可進(jìn)行掃碼打賞哦
今天注冊(cè)有機(jī)會(huì)得

100積分直接送

付費(fèi)專欄免費(fèi)學(xué)

大額優(yōu)惠券免費(fèi)領(lǐng)

立即參與 放棄機(jī)會(huì)
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)

舉報(bào)

0/150
提交
取消