DefaultViewLocationCache.InsertViewLocation Method

Inserts the view in the specified virtual path by using the specified HTTP context, cache key, and virtual path.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

'Declaration
Public Sub InsertViewLocation ( _
	httpContext As HttpContextBase, _
	key As String, _
	virtualPath As String _
)
'Usage
Dim instance As DefaultViewLocationCache 
Dim httpContext As HttpContextBase 
Dim key As String 
Dim virtualPath As String

instance.InsertViewLocation(httpContext, _
	key, virtualPath)

Parameters

httpContext
Type: System.Web.HttpContextBase

The HTTP context.

key
Type: System.String

The cache key.

virtualPath
Type: System.String

The virtual path

Implements

IViewLocationCache.InsertViewLocation(HttpContextBase, String, String)

ExceptionCondition
ArgumentNullException

The httpContext parameter is Nothing.

Show: