Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetViewLocation Method
Collapse the table of content
Expand the table of content

DefaultViewLocationCache.GetViewLocation Method (HttpContextBase, String)

 

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.

Exception Condition
ArgumentNullException

The httpContext parameter is null.

Return to top
Show:
© 2015 Microsoft