AllowLayoutAttribute.ViewPath Property

AllowLayoutAttribute.ViewPath Property

Gets or sets the view path of the layout that can be selected for this page view model. Must be the relative path from the web content root, e.g. '~/Views/ContentPage.cshtml'. The view path is case insensitive.

public string ViewPath { get; set; }

Property Value

string