Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Syntax
'Declaration
Public Function GetViewLocation ( _
httpContext As HttpContextBase, _
key As String _
) As String
public string GetViewLocation(
HttpContextBase httpContext,
string key
)
public:
virtual String^ GetViewLocation(
HttpContextBase^ httpContext,
String^ key
) sealed
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)
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The httpContext parameter is null reference (Nothing in Visual Basic). |