Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

RouteAttribute Class

Definition

Namespace:
Microsoft.AspNetCore.Components
Assembly:
Microsoft.AspNetCore.Components.dll
Package:
Microsoft.AspNetCore.Components v10.0.0
Package:
Microsoft.AspNetCore.Components v11.0.0-preview.4.26230.115
Package:
Microsoft.AspNetCore.Components v3.0.3
Package:
Microsoft.AspNetCore.Components v3.1.18
Package:
Microsoft.AspNetCore.Components v5.0.9
Package:
Microsoft.AspNetCore.Components v6.0.6
Package:
Microsoft.AspNetCore.Components v7.0.5
Package:
Microsoft.AspNetCore.Components v8.0.19
Package:
Microsoft.AspNetCore.Components v9.0.8
Source:
RouteAttribute.cs
Source:
RouteAttribute.cs
Source:
RouteAttribute.cs
Source:
RouteAttribute.cs
Source:
RouteAttribute.cs
Source:
RouteAttribute.cs
Source:
RouteAttribute.cs
Source:
RouteAttribute.cs
Source:
RouteAttribute.cs

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
[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

Constructors

Name Description
RouteAttribute(String)

Constructs an instance of RouteAttribute.

Properties

Name Description
Template

Gets the route template.

Applies to


Feedback

Was this page helpful?