Udostępnij za pośrednictwem


DefaultViewLocationCache.GetViewLocation Method

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

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).

See Also

Reference

DefaultViewLocationCache Class

System.Web.Mvc Namespace