Export (0) Print
Expand All

DefaultViewLocationCache.GetViewLocation Method

.NET Framework 4

Retrieves the default view location by using the specified HTTP context and cache key.

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

public string GetViewLocation(
	HttpContextBase httpContext,
	string key
)

Parameters

httpContext
Type: System.Web.HttpContextBase
The HTTP context.
key
Type: System.String
The cache key

Return Value

Type: System.String
The default view location.

Implements

IViewLocationCache.GetViewLocation(HttpContextBase, String)

ExceptionCondition
ArgumentNullException

The httpContext parameter is null.

Community Additions

ADD
Show:
© 2014 Microsoft