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


DefaultInlineConstraintResolver Конструкторы

Определение

Перегрузки

DefaultInlineConstraintResolver(IOptions<RouteOptions>)
Устаревшие..

Инициализирует новый экземпляр класса DefaultInlineConstraintResolver.

DefaultInlineConstraintResolver(IOptions<RouteOptions>, IServiceProvider)

Инициализирует новый экземпляр класса DefaultInlineConstraintResolver.

DefaultInlineConstraintResolver(IOptions<RouteOptions>)

Исходный код:
DefaultInlineConstraintResolver.cs
Исходный код:
DefaultInlineConstraintResolver.cs

Внимание!

This constructor is obsolete. Use DefaultInlineConstraintResolver.ctor(IOptions<RouteOptions>, IServiceProvider) instead.

Инициализирует новый экземпляр класса DefaultInlineConstraintResolver.

public:
 DefaultInlineConstraintResolver(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Routing::RouteOptions ^> ^ routeOptions);
public DefaultInlineConstraintResolver (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Routing.RouteOptions> routeOptions);
[System.Obsolete("This constructor is obsolete. Use DefaultInlineConstraintResolver.ctor(IOptions<RouteOptions>, IServiceProvider) instead.")]
public DefaultInlineConstraintResolver (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Routing.RouteOptions> routeOptions);
new Microsoft.AspNetCore.Routing.DefaultInlineConstraintResolver : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Routing.RouteOptions> -> Microsoft.AspNetCore.Routing.DefaultInlineConstraintResolver
[<System.Obsolete("This constructor is obsolete. Use DefaultInlineConstraintResolver.ctor(IOptions<RouteOptions>, IServiceProvider) instead.")>]
new Microsoft.AspNetCore.Routing.DefaultInlineConstraintResolver : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Routing.RouteOptions> -> Microsoft.AspNetCore.Routing.DefaultInlineConstraintResolver
Public Sub New (routeOptions As IOptions(Of RouteOptions))

Параметры

routeOptions
IOptions<RouteOptions>

Метод доступа для RouteOptions хранения интересующих ограничений.

Атрибуты

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

DefaultInlineConstraintResolver(IOptions<RouteOptions>, IServiceProvider)

Исходный код:
DefaultInlineConstraintResolver.cs
Исходный код:
DefaultInlineConstraintResolver.cs

Инициализирует новый экземпляр класса DefaultInlineConstraintResolver.

public:
 DefaultInlineConstraintResolver(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Routing::RouteOptions ^> ^ routeOptions, IServiceProvider ^ serviceProvider);
public DefaultInlineConstraintResolver (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Routing.RouteOptions> routeOptions, IServiceProvider serviceProvider);
new Microsoft.AspNetCore.Routing.DefaultInlineConstraintResolver : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Routing.RouteOptions> * IServiceProvider -> Microsoft.AspNetCore.Routing.DefaultInlineConstraintResolver
Public Sub New (routeOptions As IOptions(Of RouteOptions), serviceProvider As IServiceProvider)

Параметры

routeOptions
IOptions<RouteOptions>

Метод доступа для RouteOptions хранения интересующих ограничений.

serviceProvider
IServiceProvider

Поставщик IServiceProvider, из которого нужно получить аргументы службы.

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