开发者

From within my controllers action, do I have access to HttpContextBase?

开发者 https://www.devze.com 2022-12-26 03:01 出处:网络
From within my controllers action, do I have access to ht开发者_如何学编程tpcontextbase? I have a method that takes httpcontextbase as a parameter.You have access to HttpContext which derives from Ht

From within my controllers action, do I have access to ht开发者_如何学编程tpcontextbase?

I have a method that takes httpcontextbase as a parameter.


You have access to HttpContext which derives from HttpContextBase

so you can cast it like the following:

(HttpContextBase) HttpContext

0

精彩评论

暂无评论...
验证码 换一张
取 消