DefaultViewLocationCache.InsertViewLocation Method (HttpContextBase, String, String)
Inserts the view in the specified virtual path by using the specified HTTP context, cache key, and virtual path.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Public Sub InsertViewLocation ( httpContext As HttpContextBase, key As String, virtualPath As String )
Parameters
- httpContext
-
Type:
System.Web.HttpContextBase
The HTTP context.
- key
-
Type:
System.String
The cache key.
- virtualPath
-
Type:
System.String
The virtual path
| Exception | Condition |
|---|---|
| ArgumentNullException | The httpContext parameter is null. |
Show: