AllowLayoutAttribute.Name Property

AllowLayoutAttribute.Name Property

Gets or sets the name of the layout that can be selected for this page view model. The layout name is the filename of the view without (.cshtml) extension and path, e.g. for a view with path '~/Views/ContentPage.cshtml' the layout name is 'ContentPage'. If the name causes conflicts with other views with the same name but a different view path, use the property instead. The layout name is case insensitive.

public string Name { get; set; }

Property Value

string