Class FromRouteAttribute

Assembly: redb.Route.Controllers.dll

Binds a parameter from a route path segment (extracted from template matching, e.g. {id}).

[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)]
public sealed class FromRouteAttribute : Attribute

Inheritance

Object→Attribute→FromRouteAttribute

Properties

Name

Route parameter name (must match a {param} in the route template).

public string Name { get; }

Constructors