DefaultViewLocationCache.GetViewLocation Method (HttpContextBase, String)
Retrieves the default view location by using the specified HTTP context and cache key.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Public Function GetViewLocation ( httpContext As HttpContextBase, key As String ) As String
Parameters
- httpContext
-
Type:
System.Web.HttpContextBase
The HTTP context.
- key
-
Type:
System.String
The cache key
| Exception | Condition |
|---|---|
| ArgumentNullException | The httpContext parameter is null. |
Show: