DefaultViewLocationCache.InsertViewLocation 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用指定的 HTTP 上下文、缓存键和虚拟路径在指定的虚拟路径中插入视图。
public void InsertViewLocation (System.Web.HttpContextBase httpContext, string key, string virtualPath);
abstract member InsertViewLocation : System.Web.HttpContextBase * string * string -> unit
override this.InsertViewLocation : System.Web.HttpContextBase * string * string -> unit
Public Sub InsertViewLocation (httpContext As HttpContextBase, key As String, virtualPath As String)
参数
- httpContext
- HttpContextBase
HTTP 上下文。
- key
- String
缓存键。
- virtualPath
- String
虚拟路径
实现
例外
httpContext
参数为 null。