Export (0) Print
Expand All

DefaultViewLocationCache.InsertViewLocation Method

.NET Framework 4

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)

public void InsertViewLocation(
	HttpContextBase httpContext,
	string key,
	string 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 null.

Community Additions

ADD
Show:
© 2014 Microsoft