DefaultViewLocationCache.GetViewLocation(HttpContextBase, String) 方法

定义

使用指定的 HTTP 上下文和缓存键检索默认的视图位置。

public string GetViewLocation (System.Web.HttpContextBase httpContext, string key);
abstract member GetViewLocation : System.Web.HttpContextBase * string -> string
override this.GetViewLocation : System.Web.HttpContextBase * string -> string
Public Function GetViewLocation (httpContext As HttpContextBase, key As String) As String

参数

httpContext
HttpContextBase

HTTP 上下文。

key
String

缓存键

返回

默认的视图位置。

实现

例外

httpContext 参数为 null。

适用于