Describes that a parameter for the action is to form part of the stem leading up to the action itself.
Namespace:
Mindscape.LightSpeed.Web.RoutingAssembly: Mindscape.LightSpeed.Web (in Mindscape.LightSpeed.Web.dll)
Version: 4.0.1000.1 (4.0.0.0)
Syntax
C# |
---|
[AttributeUsageAttribute(AttributeTargets.Parameter)] public sealed class UrlStemAttribute : Attribute |
Visual Basic (Declaration) |
---|
<AttributeUsageAttribute(AttributeTargets.Parameter)> _ Public NotInheritable Class UrlStemAttribute _ Inherits Attribute |
Examples
Given an action with the signature: ActionResult Bar(string foo);
The default for this would be /bar
If [UrlStem] is applied to the parameter foo then the resulting route would be /[foo]/bar