Class ActionLinkModel
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
ActionLinkModel(string?, Func<Task>, string?)
public ActionLinkModel(string? Text, Func<Task> Action, string? Href = null)
Parameters
ActionLinkModel(string?, MulticastDelegate, string?)
protected ActionLinkModel(string? text, MulticastDelegate f, string? href)
Parameters
textstringfMulticastDelegatehrefstring
Fields
_Action
protected readonly MulticastDelegate _Action
Field Value
Properties
Action
public EventCallback Action { get; }
Property Value
Href
public string? Href { get; }
Property Value
Text
public string? Text { get; }
Property Value
Methods
Accept(IFragmentVisitor<string?>)
public virtual RenderFragment Accept(IFragmentVisitor<string?> visitor)
Parameters
visitorIFragmentVisitor<string>
Returns
Activate(IServiceProvider)
Attempts to activate the link. May not return control to the caller.
public override void Activate(IServiceProvider provider)
Parameters
providerIServiceProvider