ActionSelectorCandidate Class

Summary

A candidate action for action selection.

Syntax

public class ActionSelectorCandidate

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.ActionSelectorCandidate

Constructors

ActionSelectorCandidate(Microsoft.AspNet.Mvc.ActionDescriptor, System.Collections.Generic.IReadOnlyList<Microsoft.AspNet.Mvc.IActionConstraint>)

Creates a new [Microsoft.AspNet.Mvc.ActionSelectorCandidate](Microsoft.AspNet.Mvc.ActionSelectorCandidate.yml).

Arguments:
  • action (Microsoft.AspNet.Mvc.ActionDescriptor) – The [Microsoft.AspNet.Mvc.ActionDescriptor](Microsoft.AspNet.Mvc.ActionDescriptor.yml) representing a candidate for selection.
  • constraints (System.Collections.Generic.IReadOnlyList{Microsoft.AspNet.Mvc.IActionConstraint}) – The list of [Microsoft.AspNet.Mvc.IActionConstraint](Microsoft.AspNet.Mvc.IActionConstraint.yml) instances associated with <paramref name=”action” />.
public ActionSelectorCandidate(ActionDescriptor action, IReadOnlyList<IActionConstraint> constraints)

Properties

Action()

The [Microsoft.AspNet.Mvc.ActionDescriptor](Microsoft.AspNet.Mvc.ActionDescriptor.yml) representing a candiate for selection.

Return type:Microsoft.AspNet.Mvc.ActionDescriptor
public ActionDescriptor Action { get; }
Constraints()

The list of [Microsoft.AspNet.Mvc.IActionConstraint](Microsoft.AspNet.Mvc.IActionConstraint.yml) instances associated with <see name=”Action” />.

Return type:System.Collections.Generic.IReadOnlyList{Microsoft.AspNet.Mvc.IActionConstraint}
public IReadOnlyList<IActionConstraint> Constraints { get; }