DefaultViewLocationCache.InsertViewLocation 方法

定义

使用指定的 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。

适用于