Class AuthorizedMenuModel
A menu which is hidden or replaced by a fallback based on authorization rules.
public record AuthorizedMenuModel : MenuModel, IEquatable<MenuModel>, IEquatable<AuthorizedMenuModel>
- Inheritance
-
AuthorizedMenuModel
- Implements
- Inherited Members
Constructors
AuthorizedMenuModel(MenuModel, string[]?, string?, object?)
public AuthorizedMenuModel(MenuModel Authorized, string[]? Roles = null, string? Policy = null, object? Resource = null)
Parameters
AuthorizedMenuModel(MenuModel, MenuModel?, string[]?, string?, object?)
A menu which is hidden or replaced by a fallback based on authorization rules.
public AuthorizedMenuModel(MenuModel Authorized, MenuModel? NotAuthorized, string[]? Roles = null, string? Policy = null, object? Resource = null)
Parameters
Properties
Authorized
public MenuModel Authorized { get; init; }
Property Value
NotAuthorized
public MenuModel? NotAuthorized { get; init; }
Property Value
Policy
public string? Policy { get; init; }
Property Value
Resource
public object? Resource { get; init; }
Property Value
Roles
public string[]? Roles { get; init; }
Property Value
- string[]
Methods
Flatten(IServices)
public override IEnumerable<LinkModel> Flatten(IServices services)
Parameters
servicesIServices