Share via


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)

Syntax

'Declaration
Public Sub InsertViewLocation ( _
    httpContext As HttpContextBase, _
    key As String, _
    virtualPath As String _
)
public void InsertViewLocation(
    HttpContextBase httpContext,
    string key,
    string virtualPath
)
public:
virtual void InsertViewLocation(
    HttpContextBase^ httpContext, 
    String^ key, 
    String^ virtualPath
) sealed

Parameters

Implements

IViewLocationCache.InsertViewLocation(HttpContextBase, String, String)

Exceptions

Exception Condition
ArgumentNullException

The httpContext parameter is null reference (Nothing in Visual Basic).

See Also

Reference

DefaultViewLocationCache Class

System.Web.Mvc Namespace