RouteView.DefaultLayout 属性

定义

获取或设置页面未声明任何布局时要使用的布局的类型。 如果指定,则类型必须实现 IComponent 并接受名为 的参数 Body

C#
[Microsoft.AspNetCore.Components.Parameter]
public Type DefaultLayout { get; set; }

属性值

属性

适用于

产品 版本
ASP.NET Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0