Class AuthorizedLinkModel
Represents a link which is only visible to some users.
public sealed record AuthorizedLinkModel : LinkModel, IEquatable<LinkModel>, IEquatable<AuthorizedLinkModel>
- Inheritance
-
AuthorizedLinkModel
- Implements
- Inherited Members
Constructors
AuthorizedLinkModel(LinkModel, string[]?, string?, object?)
public AuthorizedLinkModel(LinkModel Authorized, string[]? Roles = null, string? Policy = null, object? Resource = null)
Parameters
AuthorizedLinkModel(LinkModel, LinkModel?, string[]?, string?, object?)
Represents a link which is only visible to some users.
public AuthorizedLinkModel(LinkModel Authorized, LinkModel? NotAuthorized, string[]? Roles = null, string? Policy = null, object? Resource = null)
Parameters
Properties
Authorized
public LinkModel Authorized { get; init; }
Property Value
NotAuthorized
public LinkModel? 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
Activate(IServiceProvider)
Attempts to activate the link. May not return control to the caller.
public override void Activate(IServiceProvider provider)
Parameters
providerIServiceProvider