AttributeRouteModel Class

Namespace
Microsoft.AspNetCore.Mvc.ApplicationModels
Assemblies
  • Microsoft.AspNetCore.Mvc.Core

Syntax

public class AttributeRouteModel
class Microsoft.AspNetCore.Mvc.ApplicationModels.AttributeRouteModel

Constructors

AttributeRouteModel()
public AttributeRouteModel()
AttributeRouteModel(Microsoft.AspNetCore.Mvc.ApplicationModels.AttributeRouteModel)
public AttributeRouteModel(AttributeRouteModel other)
AttributeRouteModel(Microsoft.AspNetCore.Mvc.Routing.IRouteTemplateProvider)
public AttributeRouteModel(IRouteTemplateProvider templateProvider)

Properties

Microsoft.AspNetCore.Mvc.ApplicationModels.AttributeRouteModel.Attribute
Return type:Microsoft.AspNetCore.Mvc.Routing.IRouteTemplateProvider
public IRouteTemplateProvider Attribute { get; }
Microsoft.AspNetCore.Mvc.ApplicationModels.AttributeRouteModel.IsAbsoluteTemplate
Return type:System.Boolean
public bool IsAbsoluteTemplate { get; }
Microsoft.AspNetCore.Mvc.ApplicationModels.AttributeRouteModel.Name
Return type:System.String
public string Name { get; set; }
Microsoft.AspNetCore.Mvc.ApplicationModels.AttributeRouteModel.Order
Return type:System.Nullable<System.Int32>
public int ? Order { get; set; }
Microsoft.AspNetCore.Mvc.ApplicationModels.AttributeRouteModel.Template
Return type:System.String
public string Template { get; set; }

Methods

CombineAttributeRouteModel(Microsoft.AspNetCore.Mvc.ApplicationModels.AttributeRouteModel, Microsoft.AspNetCore.Mvc.ApplicationModels.AttributeRouteModel)

Combines two Microsoft.AspNetCore.Mvc.ApplicationModels.AttributeRouteModel instances and returns a new Microsoft.AspNetCore.Mvc.ApplicationModels.AttributeRouteModel instance with the result.

Arguments:
Return type:

Microsoft.AspNetCore.Mvc.ApplicationModels.AttributeRouteModel

Returns:

A new instance of Microsoft.AspNetCore.Mvc.ApplicationModels.AttributeRouteModel that represents the combination of the two Microsoft.AspNetCore.Mvc.ApplicationModels.AttributeRouteModel instances or <code>null</code> if both parameters are <code>null</code>.

public static AttributeRouteModel CombineAttributeRouteModel(AttributeRouteModel left, AttributeRouteModel right)
ReplaceTokens(System.String, System.Collections.Generic.IDictionary<System.String, System.String>)
Return type:System.String
public static string ReplaceTokens(string template, IDictionary<string, string> values)