Dela via


AttributeRouteModel Class

Definition

A model for attribute routes.

public ref class AttributeRouteModel
public class AttributeRouteModel
type AttributeRouteModel = class
Public Class AttributeRouteModel
Inheritance
AttributeRouteModel

Constructors

AttributeRouteModel()

Initializes a new instance of Microsoft.AspNetCore.Mvc.Routing.AttributeRoute.

AttributeRouteModel(AttributeRouteModel)

Copy constructor for Microsoft.AspNetCore.Mvc.Routing.AttributeRoute.

AttributeRouteModel(IRouteTemplateProvider)

Initializes a new instance of Microsoft.AspNetCore.Mvc.Routing.AttributeRoute using the specified templateProvider.

Properties

Attribute

Gets the IRouteTemplateProvider.

IsAbsoluteTemplate

Gets or sets a value that determines if this route template for this model overrides the route template at the parent scope.

Name

Gets or sets the route name.

Order

Gets or sets the route order.

SuppressLinkGeneration

Gets or sets a value that determines if this model participates in link generation.

SuppressPathMatching

Gets or sets a value that determines if this model participates in path matching (inbound routing).

Template

Gets or sets the attribute route template.

Methods

CombineAttributeRouteModel(AttributeRouteModel, AttributeRouteModel)

Combines two AttributeRouteModel instances and returns a new AttributeRouteModel instance with the result.

CombineTemplates(String, String)

Combines the prefix and route template for an attribute route.

IsOverridePattern(String)

Determines if a template pattern can be used to override a prefix.

ReplaceTokens(String, IDictionary<String,String>, IOutboundParameterTransformer)

Replaces the tokens in the template with the provided values and route token transformer.

ReplaceTokens(String, IDictionary<String,String>)

Replaces the tokens in the template with the provided values.

Applies to