Share via


ViewLocationExpanderContext Class

Definition

A context for containing information for IViewLocationExpander.

public ref class ViewLocationExpanderContext
public class ViewLocationExpanderContext
type ViewLocationExpanderContext = class
Public Class ViewLocationExpanderContext
Inheritance
ViewLocationExpanderContext

Constructors

ViewLocationExpanderContext(ActionContext, String, String, String, Boolean)

Initializes a new instance of ViewLocationExpanderContext.

ViewLocationExpanderContext(ActionContext, String, String, String, String, Boolean)

Initializes a new instance of ViewLocationExpanderContext.

Properties

ActionContext

Gets the ActionContext for the current executing action.

AreaName

Gets the area name.

ControllerName

Gets the controller name.

IsMainPage

Determines if the page being found is the main page for an action.

PageName

Gets the page name. This will be the value of the page route value when rendering a Page from the Razor Pages framework. This value will be null if rendering a view as the result of a controller.

Values

Gets or sets the IDictionary<TKey,TValue> that is populated with values as part of PopulateValues(ViewLocationExpanderContext).

ViewName

Gets the view name.

Applies to