RouteAttribute Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates that the associated component should match the specified route template pattern.
public ref class RouteAttribute sealed : Attribute
C#
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)]
public sealed class RouteAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)>]
type RouteAttribute = class
inherit Attribute
Public NotInheritable Class RouteAttribute
Inherits Attribute
- Inheritance
-
RouteAttribute
- Attributes
Route |
Constructs an instance of RouteAttribute. |
Template |
Gets the route template. |
Product | Versions |
---|---|
ASP.NET Core | 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |