HttpApplication application1 = sender as HttpApplication;
HttpWorkerRequest request1 = (HttpWorkerRequest)((IServiceProvider)HttpContext.Current).GetService(typeof(HttpWorkerRequest));
try
{
if (application1.Context.Request.ContentType.IndexOf("multipart/form-data") <= -1)
{
return;
}
//Check The HasEntityBody
if (!request1.HasEntityBody())
{
return;
} int num1 = 0;
TimeSpan span1 = DateTime.Now.Subtract(this.beginTime); string text1 = application1.Context.Request.ContentType.ToLower(); byte[] buffer1 = Encoding.ASCII.GetBytes(("\r\n--" + text1.Substring(text1.IndexOf("boundary=") + 9)).ToCharArray());
int num2 = Convert.ToInt32(request1.GetKnownRequestHeader(11));
Progress progress1 = new Progress(); application1.Context.Items.Add("FileList", new Hashtable()); byte[] buffer2 = request1.GetPreloadedEntityBody();
num1 += buffer2.Length; string text2 = this.AnalysePreloadedEntityBody(buffer2, "UploadGUID");
if (text2 != string.Empty)
{
application1.Context.Items.Add("LionSky_UpLoadModule_UploadGUID", text2);
}
bool flag1 = true;
if ((num2 > this.UpLoadFileLength()) && ((0 > span1.TotalHours) || (span1.TotalHours > 3)))
{
flag1 = false;
}
请问这段代码中的this指的是什么?
HttpWorkerRequest request1 = (HttpWorkerRequest)((IServiceProvider)HttpContext.Current).GetService(typeof(HttpWorkerRequest));
try
{
if (application1.Context.Request.ContentType.IndexOf("multipart/form-data") <= -1)
{
return;
}
//Check The HasEntityBody
if (!request1.HasEntityBody())
{
return;
} int num1 = 0;
TimeSpan span1 = DateTime.Now.Subtract(this.beginTime); string text1 = application1.Context.Request.ContentType.ToLower(); byte[] buffer1 = Encoding.ASCII.GetBytes(("\r\n--" + text1.Substring(text1.IndexOf("boundary=") + 9)).ToCharArray());
int num2 = Convert.ToInt32(request1.GetKnownRequestHeader(11));
Progress progress1 = new Progress(); application1.Context.Items.Add("FileList", new Hashtable()); byte[] buffer2 = request1.GetPreloadedEntityBody();
num1 += buffer2.Length; string text2 = this.AnalysePreloadedEntityBody(buffer2, "UploadGUID");
if (text2 != string.Empty)
{
application1.Context.Items.Add("LionSky_UpLoadModule_UploadGUID", text2);
}
bool flag1 = true;
if ((num2 > this.UpLoadFileLength()) && ((0 > span1.TotalHours) || (span1.TotalHours > 3)))
{
flag1 = false;
}
请问这段代码中的this指的是什么?
解决方案 »
- insert插入数据库的问题
- 下载了一个.NET开发的网站,文件的后缀名是.aspx,我想在本地机预览要装什么工具就可以看了呢???
- 在一个网页中要求输入30个数据你还会用TextBox吗
- 谁见过拿ASP.NET做出来的认为最人性化和最花的网站呢.网址贴出来看看.
- 关于 Duwamish7 中一点不明白的地方
- 大家帮忙看看,一个DataReader的问题?
- ftp传送文件问题
- 如何在SESSION到期前捕捉这个事件?也就是说我在此事件处理函数中还能正常读到SESSION中的变量,等事件处理函数结束后SESSION才真的过期
- 单线程发布到服务器上总是运行20次左右就停止
- webform 访问注册表,错误提示:
- (在线等)如何在JS文件中写入数据库中的值
- 做一网站,遇到一个设计的问题,请指教...
C#中This的用法
参考