ViewLocationExpanderContext Class

Summary

A context for containing information for [Microsoft.AspNet.Mvc.Razor.IViewLocationExpander](Microsoft.AspNet.Mvc.Razor.IViewLocationExpander.yml).

Syntax

public class ViewLocationExpanderContext

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.Razor.ViewLocationExpanderContext

Constructors

ViewLocationExpanderContext(Microsoft.AspNet.Mvc.ActionContext, System.String, System.Boolean)

Initializes a new instance of [Microsoft.AspNet.Mvc.Razor.ViewLocationExpanderContext](Microsoft.AspNet.Mvc.Razor.ViewLocationExpanderContext.yml).

Arguments:
  • actionContext (Microsoft.AspNet.Mvc.ActionContext) – The [Microsoft.AspNet.Mvc.ActionContext]() for the current executing action.
  • viewName (System.String) – The view name.
  • isPartial (System.Boolean) – Determines if the view being discovered is a partial.
public ViewLocationExpanderContext(ActionContext actionContext, string viewName, bool isPartial)

Properties

ActionContext()

Gets the [Microsoft.AspNet.Mvc.ActionContext]() for the current executing action.

Return type:Microsoft.AspNet.Mvc.ActionContext
public ActionContext ActionContext { get; }
IsPartial()

Gets a value that determines if a partial view is being discovered.

Return type:System.Boolean
public bool IsPartial { get; }
Values()

Gets or sets the [System.Collections.Generic.IDictionary`2]() that is populated with values as part of [Microsoft.AspNet.Mvc.Razor.IViewLocationExpander.PopulateValues(Microsoft.AspNet.Mvc.Razor.ViewLocationExpanderContext)](Microsoft.AspNet.Mvc.Razor.IViewLocationExpander.yml).

Return type:System.Collections.Generic.IDictionary{System.String,System.String}
public IDictionary<string, string> Values { get; set; }
ViewName()

Gets the view name.

Return type:System.String
public string ViewName { get; }