Table of Contents

Class AuthorizedLinkModel

Namespace
The.Web.Routing
Assembly
Instagile.Web.Client.dll

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

Authorized LinkModel
Roles string[]
Policy string
Resource object

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

Authorized LinkModel
NotAuthorized LinkModel
Roles string[]
Policy string
Resource object

Properties

Authorized

public LinkModel Authorized { get; init; }

Property Value

LinkModel

NotAuthorized

public LinkModel? NotAuthorized { get; init; }

Property Value

LinkModel

Policy

public string? Policy { get; init; }

Property Value

string

Resource

public object? Resource { get; init; }

Property Value

object

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

provider IServiceProvider