Table of Contents

Class ActionLinkModel

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

Represents a link which executes arbitrary code when activated.

public record ActionLinkModel : LinkModel, IEquatable<LinkModel>, IEquatable<ActionLinkModel>
Inheritance
ActionLinkModel
Implements
Derived
Inherited Members

Constructors

ActionLinkModel(string?, Action, string?)

public ActionLinkModel(string? Text, Action Action, string? Href = null)

Parameters

Text string
Action Action
Href string

ActionLinkModel(string?, Func<Task>, string?)

public ActionLinkModel(string? Text, Func<Task> Action, string? Href = null)

Parameters

Text string
Action Func<Task>
Href string

ActionLinkModel(string?, MulticastDelegate, string?)

protected ActionLinkModel(string? text, MulticastDelegate f, string? href)

Parameters

text string
f MulticastDelegate
href string

Fields

_Action

protected readonly MulticastDelegate _Action

Field Value

MulticastDelegate

Properties

Action

public EventCallback Action { get; }

Property Value

EventCallback

Href

public string? Href { get; }

Property Value

string

Text

public string? Text { get; }

Property Value

string

Methods

Accept(IFragmentVisitor<string?>)

public virtual RenderFragment Accept(IFragmentVisitor<string?> visitor)

Parameters

visitor IFragmentVisitor<string>

Returns

RenderFragment

Activate(IServiceProvider)

Attempts to activate the link. May not return control to the caller.

public override void Activate(IServiceProvider provider)

Parameters

provider IServiceProvider