Поделиться через


RouteBase Конструктор

Определение

Создает новый экземпляр RouteBase.

public:
 RouteBase(System::String ^ template, System::String ^ name, Microsoft::AspNetCore::Routing::IInlineConstraintResolver ^ constraintResolver, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ defaults, System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ constraints, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ dataTokens);
public RouteBase (string template, string name, Microsoft.AspNetCore.Routing.IInlineConstraintResolver constraintResolver, Microsoft.AspNetCore.Routing.RouteValueDictionary defaults, System.Collections.Generic.IDictionary<string,object> constraints, Microsoft.AspNetCore.Routing.RouteValueDictionary dataTokens);
public RouteBase (string? template, string? name, Microsoft.AspNetCore.Routing.IInlineConstraintResolver constraintResolver, Microsoft.AspNetCore.Routing.RouteValueDictionary? defaults, System.Collections.Generic.IDictionary<string,object>? constraints, Microsoft.AspNetCore.Routing.RouteValueDictionary? dataTokens);
new Microsoft.AspNetCore.Routing.RouteBase : string * string * Microsoft.AspNetCore.Routing.IInlineConstraintResolver * Microsoft.AspNetCore.Routing.RouteValueDictionary * System.Collections.Generic.IDictionary<string, obj> * Microsoft.AspNetCore.Routing.RouteValueDictionary -> Microsoft.AspNetCore.Routing.RouteBase
Public Sub New (template As String, name As String, constraintResolver As IInlineConstraintResolver, defaults As RouteValueDictionary, constraints As IDictionary(Of String, Object), dataTokens As RouteValueDictionary)

Параметры

template
String

Шаблон маршрута.

name
String

Имя маршрута.

constraintResolver
IInlineConstraintResolver

Объект , используемый IInlineConstraintResolver для разрешения встроенных ограничений.

defaults
RouteValueDictionary

Значения по умолчанию для параметров в маршруте.

constraints
IDictionary<String,Object>

Ограничения для маршрута.

dataTokens
RouteValueDictionary

Маркеры данных для маршрута.

Применяется к